mirror of https://github.com/oxen-io/oxen-mq.git
Allow disabling -Werror via a cmake option
This commit is contained in:
parent
504d0d10ea
commit
560d38d069
|
@ -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…
Reference in New Issue