Skip to content

Commit

Permalink
Remove -Werror switch from default build
Browse files Browse the repository at this point in the history
  • Loading branch information
ghewgill committed Dec 28, 2023
1 parent e98b114 commit ac6efed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
8 changes: 4 additions & 4 deletions exec/cnex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac6efed

Please sign in to comment.