Fixing iOS clang warnings, part 3

This commit is contained in:
Maksim Shabunin
2014-10-17 16:46:47 +04:00
parent ef3d02214b
commit 571ebb2373
7 changed files with 16 additions and 16 deletions

View File

@@ -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 -Wno-semicolon-before-method-body")
set(flags "${_flags} -fobjc-exceptions")
else()
set(flags "-fobjc-exceptions -Wno-semicolon-before-method-body")
set(flags "-fobjc-exceptions")
endif()
set_source_files_properties("${source}" PROPERTIES COMPILE_FLAGS "${flags}")