Fixing iOS clang warnings, part 2
This commit is contained in:
@@ -249,9 +249,9 @@ macro(add_apple_compiler_options the_module)
|
||||
if("${source}" MATCHES "\\.mm$")
|
||||
get_source_file_property(flags "${source}" COMPILE_FLAGS)
|
||||
if(flags)
|
||||
set(flags "${_flags} -fobjc-exceptions")
|
||||
set(flags "${_flags} -fobjc-exceptions -Wno-semicolon-before-method-body")
|
||||
else()
|
||||
set(flags "-fobjc-exceptions")
|
||||
set(flags "-fobjc-exceptions -Wno-semicolon-before-method-body")
|
||||
endif()
|
||||
|
||||
set_source_files_properties("${source}" PROPERTIES COMPILE_FLAGS "${flags}")
|
||||
|
Reference in New Issue
Block a user