diff options
author | Zhihao Yuan <lichray@gmail.com> | 2017-01-19 01:16:07 +0300 |
---|---|---|
committer | Zhihao Yuan <lichray@gmail.com> | 2017-01-19 03:09:18 +0300 |
commit | 3cc77d5d635c2411f327cc4f262f37abb66ff43c (patch) | |
tree | 930c67dfb6244e33002134bc0110879ca7dcbe71 /example | |
parent | 835f2f4a79768137ed1d3f262bc02f3aced05ff9 (diff) |
Treat signed-unsigned conversions as errors.
Diffstat (limited to 'example')
-rw-r--r-- | example/CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 4d448ccc..bec6a8cb 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -24,11 +24,10 @@ set(EXAMPLES include_directories("../include/") add_definitions(-D__STDC_FORMAT_MACROS) +set_property(DIRECTORY PROPERTY COMPILE_OPTIONS ${EXTRA_CXX_FLAGS}) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -Werror -Wall -Wextra -Weffc++ -Wswitch-default") -elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default -Wfloat-equal -Wimplicit-fallthrough -Weverything") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") endif() foreach (example ${EXAMPLES}) |