Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jarro2783/cxxopts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJarryd Beck <jarro.2783@gmail.com>2016-08-26 01:22:04 +0300
committerJarryd Beck <jarro.2783@gmail.com>2016-08-26 01:22:04 +0300
commit55bfe49aa0faffbbdcb9df294011171ea055f9fd (patch)
treec6b26682e166ce97cfe3e91020c55c27eb93b9f2 /src
parent003ba3253e3e8e6e8dbb21b0cb60f12334ea16ae (diff)
options test
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt12
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)