diff options
author | Jarryd Beck <jarro.2783@gmail.com> | 2016-08-26 01:22:04 +0300 |
---|---|---|
committer | Jarryd Beck <jarro.2783@gmail.com> | 2016-08-26 01:22:04 +0300 |
commit | 55bfe49aa0faffbbdcb9df294011171ea055f9fd (patch) | |
tree | c6b26682e166ce97cfe3e91020c55c27eb93b9f2 /src | |
parent | 003ba3253e3e8e6e8dbb21b0cb60f12334ea16ae (diff) |
options test
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b750ef5..dfd768d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -19,13 +19,13 @@ # THE SOFTWARE. if(CXXOPTS_BUILD_EXAMPLES) - add_executable(example example.cpp cxxopts.hpp) + add_executable(example example.cpp cxxopts.hpp) - if (MSVC) - target_compile_options(example PUBLIC /W2) - elseif(CMAKE_CXX_COMPILER_ID MATCHES "[Cc]lang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") - target_compile_options(example PUBLIC -std=c++11 -Wall) - endif() + if (MSVC) + target_compile_options(example PUBLIC /W2) + elseif(CMAKE_CXX_COMPILER_ID MATCHES "[Cc]lang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") + target_compile_options(example PUBLIC -std=c++11 -Wall) + endif() endif() install(FILES cxxopts.hpp DESTINATION include) |