mirror of
https://github.com/Naios/continuable.git
synced 2025-12-09 18:26:46 +08:00
clang workarround
This commit is contained in:
parent
bf52141e94
commit
d49d1b3a20
@ -5,6 +5,8 @@ include(CheckCXXCompilerFlag)
|
||||
include(CheckCXXSourceRuns)
|
||||
include(CheckIncludeFiles)
|
||||
|
||||
message(STATUS ${CMAKE_COMPILER_IS_MSVC})
|
||||
|
||||
if(MSVC)
|
||||
if(${MSVC_VERSION} LESS 1900)
|
||||
message(FATAL_ERROR "You are using an unsupported version of Visual Studio "
|
||||
@ -27,7 +29,11 @@ else()
|
||||
CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)
|
||||
|
||||
if(NOT COMPILER_SUPPORTS_CXX14)
|
||||
message(FATAL_ERROR "Your compiler has no C++14 capability!")
|
||||
if (CMAKE_COMPILER_IS_CLANGXX)
|
||||
# Clang > 3.4 is ok
|
||||
else()
|
||||
message(FATAL_ERROR "Your compiler has no C++14 capability!")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user