1
0
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:
Sandu Liviu Catalin 2021-02-01 01:35:03 +02:00
parent 29aaa7e9b8
commit 2a719c18c2

View File

@ -83,9 +83,12 @@ else()
if(${CMAKE_CXX_COMPILER_ID} MATCHES "(GNU)+") if(${CMAKE_CXX_COMPILER_ID} MATCHES "(GNU)+")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP_STD_COMPILER_FLAG}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP_STD_COMPILER_FLAG}")
endif() 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 # Try the standard method as well
set(CMAKE_CXX_STANDARD ${CPP_STD_NUMBER}) set(CMAKE_CXX_STANDARD ${CPP_STD_NUMBER})
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
endif() endif()
# Determine if build mode # Determine if build mode