diff --git a/CMakeLists.txt b/CMakeLists.txt index 9921faedf..363f3dfdf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,7 +120,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") add_compile_options(/EHsc /W2 /WX /FS /wd4324) elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang") - add_compile_options(-Wall -Wextra -Werror -g) + add_compile_options(-Wall -Wextra -g) endif () list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") diff --git a/exec/cnex/CMakeLists.txt b/exec/cnex/CMakeLists.txt index 7f5f11b8c..e869f63e1 100644 --- a/exec/cnex/CMakeLists.txt +++ b/exec/cnex/CMakeLists.txt @@ -128,10 +128,10 @@ add_test( ) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - set_target_properties(cnex PROPERTIES COMPILE_FLAGS "-std=c99 -Wall -Werror") - set_target_properties(test_string_support PROPERTIES COMPILE_FLAGS "-std=c99 -Wall -Werror") - set_target_properties(test_number_to_string_c PROPERTIES COMPILE_FLAGS "-std=c99 -Wall -Werror") - set_target_properties(test_path_support PROPERTIES COMPILE_FLAGS "-std=c99 -Wall -Werror") + set_target_properties(cnex PROPERTIES COMPILE_FLAGS "-std=c99 -Wall") + set_target_properties(test_string_support PROPERTIES COMPILE_FLAGS "-std=c99 -Wall") + set_target_properties(test_number_to_string_c PROPERTIES COMPILE_FLAGS "-std=c99 -Wall") + set_target_properties(test_path_support PROPERTIES COMPILE_FLAGS "-std=c99 -Wall") endif () target_link_libraries(cnex