diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2017-10-21 14:17:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-21 14:17:22 (GMT) |
commit | 929ea15c46c55562862181f59ae2c6b00c046dc0 (patch) | |
tree | 4dbc9656f628f5b9096e11eb5c7c34e1865ab1fa /src | |
parent | af7dfa6d51dcbdbcba4196c244e4609ff249d83c (diff) | |
parent | fcf5fecb64d5c194430e10cbe52482b14224d645 (diff) | |
download | Doxygen-929ea15c46c55562862181f59ae2c6b00c046dc0.zip Doxygen-929ea15c46c55562862181f59ae2c6b00c046dc0.tar.gz Doxygen-929ea15c46c55562862181f59ae2c6b00c046dc0.tar.bz2 |
Merge pull request #615 from DerDakon/cmake-cleanup
clean up CMake code
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3b5d3cc..5c55efa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -248,12 +248,13 @@ add_executable(doxygen main.cpp) if (use_libclang) find_package(LLVM REQUIRED CONFIG) find_package(Clang REQUIRED CONFIG) - if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") + if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + cmake_minimum_required(VERSION 3.1) target_compile_features(_doxygen PRIVATE cxx_alignof) target_compile_features(doxygen PRIVATE cxx_alignof) - target_compile_options(_doxygen PRIVATE -stdlib=libc++ -std=c++11) - target_compile_options(doxygen PRIVATE -stdlib=libc++ -std=c++11) - elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") + target_compile_options(_doxygen PRIVATE -stdlib=libc++) + target_compile_options(doxygen PRIVATE -stdlib=libc++) + elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") target_compile_options(_doxygen PRIVATE -std=c++11) target_compile_options(doxygen PRIVATE -std=c++11) endif() @@ -278,4 +279,3 @@ target_link_libraries(doxygen ) install(TARGETS doxygen DESTINATION bin) - |