[CMAKE] Disable treating warnings as errors in GCC release builds, at least until we get everything under control, for example CORE-7885.

svn path=/trunk/; revision=68153
This commit is contained in:
Amine Khaldi 2015-06-15 18:48:38 +00:00
parent 4945778e7d
commit ef6a028073

View file

@ -111,7 +111,7 @@ else()
endif() endif()
# Warnings, errors # Warnings, errors
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") if((NOT CMAKE_BUILD_TYPE STREQUAL "Release") AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
add_compile_flags("-Werror") add_compile_flags("-Werror")
endif() endif()