From 51d0d1dda46a01089840f5803c38bf985cf4d00f Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Thu, 14 Jan 2016 11:25:00 +0100 Subject: [PATCH] CMakeLists.txt: do not activate -Werror on iOS (SDK not compiling otherwise) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 165c546..dac811a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,10 @@ add_definitions(-DHAVE_CONFIG_H) if(MSVC) add_definitions("/W3") else() - add_definitions("-Wall" "-Werror") + add_definitions("-Wall") + if (NOT IOS) + add_definitions("-Werror") + endif() endif() add_subdirectory(src)