Skip to content

Commit

Permalink
Don't set errors-as-warnings for the whole library
Browse files Browse the repository at this point in the history
  • Loading branch information
Smertig committed May 6, 2024
1 parent 396124c commit 4e8634b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ target_compile_definitions(rcmp PUBLIC RCMP_VERSION_MINOR=${RCMP_VERSION_MINOR})
target_compile_definitions(rcmp PUBLIC RCMP_VERSION_PATCH=${RCMP_VERSION_PATCH})

if(MSVC)
target_compile_options(rcmp PRIVATE /W4 /WX)
target_compile_options(rcmp PRIVATE /W4)
else()
target_compile_options(rcmp PRIVATE -Wall -Wextra -pedantic -Werror)
target_compile_options(rcmp PRIVATE -Wall -Wextra -pedantic)
endif()

if (${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
Expand Down

0 comments on commit 4e8634b

Please sign in to comment.