Browse Source

Allow disabling -Werror via a cmake option

pull/53/head
Jason Rhinelander 7 months ago
parent
commit
560d38d069
  1. 8
      CMakeLists.txt

8
CMakeLists.txt

@ -113,7 +113,13 @@ target_include_directories(oxenmq
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/cppzmq>
)
target_compile_options(oxenmq PRIVATE -Wall -Wextra -Werror)
target_compile_options(oxenmq PRIVATE -Wall -Wextra)
option(WARNINGS_AS_ERRORS "treat all warnings as errors" ON)
if(WARNINGS_AS_ERRORS)
target_compile_options(oxenmq PRIVATE -Werror)
endif()
set_target_properties(oxenmq PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON

Loading…
Cancel
Save