Commit 4d8f1cc2 authored by Fylax's avatar Fylax

Fixed missed else in cmake

parent 51d43470
...@@ -12,11 +12,12 @@ option(PISTACHE_INSTALL "add pistache as install target (recommended)" ON) ...@@ -12,11 +12,12 @@ option(PISTACHE_INSTALL "add pistache as install target (recommended)" ON)
if(${CMAKE_VERSION} VERSION_LESS "3.8.0") if(${CMAKE_VERSION} VERSION_LESS "3.8.0")
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17) CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)
if(COMPILER_SUPPORTS_CXX11) if(COMPILER_SUPPORTS_CXX17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
else() else()
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD 14)
endif() endif()
else()
# Clang exports C++17 in std::experimental namespace (tested on Clang 5 and 6). # Clang exports C++17 in std::experimental namespace (tested on Clang 5 and 6).
# This gives an error on date.h external library. # This gives an error on date.h external library.
# Following workaround forces Clang to compile at best with C++14 # Following workaround forces Clang to compile at best with C++14
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment