mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Update CMakeLists.txt
This commit is contained in:
parent
8df5f03d7b
commit
033de17565
@ -80,14 +80,10 @@ message(STATUS "SqMod: Using C++${CPP_STD_NUMBER} standard.")
|
||||
|
||||
# Default to the identified standard
|
||||
if(CMAKE_VERSION VERSION_LESS "3.1")
|
||||
if(${CMAKE_CXX_COMPILER_ID} MATCHES "(GNU)+")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP_STD_COMPILER_FLAG}")
|
||||
endif()
|
||||
else()
|
||||
# Apparently the above does not work with cmake from on debian 8
|
||||
if(${CMAKE_CXX_COMPILER_ID} MATCHES "(GNU)+")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP_STD_COMPILER_FLAG}")
|
||||
endif()
|
||||
# F* you too Debian. What can I say.
|
||||
if(CMAKE_VERSION VERSION_LESS "3.8.0" AND CPP_STD_NUMBER LESS 17)
|
||||
# Try the standard method as well
|
||||
|
Loading…
Reference in New Issue
Block a user