CMakeLists.txt: do not activate -Werror on iOS (SDK not compiling otherwise)

parent d2acb63c
......@@ -66,9 +66,12 @@ add_definitions(-DHAVE_CONFIG_H)
if(NOT MSVC)
add_definitions(-Wall -Wno-error=unknown-pragmas)
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
add_definitions(-Werror -Wno-error=unknown-warning-option)
add_definitions("-Wno-error=unknown-warning-option")
if (NOT IOS)
add_definitions("-Werror")
endif()
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
add_definitions(-Werror -Wno-error=pragmas)
add_definitions("-Werror -Wno-error=pragmas")
endif()
endif(NOT MSVC)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment