File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ option(INFLUXCXX_WITH_BOOST "Build with Boost support enabled" ON)
18
18
option (INFLUXCXX_TESTING "Enable testing for this component" ON )
19
19
option (INFLUXCXX_SYSTEMTEST "Enable system tests" ON )
20
20
option (INFLUXCXX_COVERAGE "Enable Coverage" OFF )
21
+ option (INFLUXCXX_WERROR "Build with -Werror enabled (if supported)" ON )
21
22
22
23
# Define project
23
24
project (influxdb-cxx
@@ -35,7 +36,7 @@ if(NOT MSVC AND NOT INCLUDED_AS_SUBPROJECT)
35
36
-Wextra
36
37
-pedantic
37
38
-pedantic-errors
38
- -Werror
39
+ $<$< BOOL : ${INFLUXCXX_WERROR} >: -Werror>
39
40
-Wshadow
40
41
-Wold-style-cast
41
42
-Wnull-dereference
@@ -68,6 +69,7 @@ message(STATUS "Build Type : ${CMAKE_BUILD_TYPE}")
68
69
message (STATUS "Boost support : ${INFLUXCXX_WITH_BOOST} " )
69
70
message (STATUS "Unit Tests : ${INFLUXCXX_TESTING} " )
70
71
message (STATUS "System Tests : ${INFLUXCXX_SYSTEMTEST} " )
72
+ message (STATUS "Werror : ${INFLUXCXX_WERROR} " )
71
73
72
74
73
75
# Add coverage flags
You can’t perform that action at this time.
0 commit comments