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
180cccc324
commit
2b83364a7e
@ -22,7 +22,8 @@ if(${CMAKE_CXX_COMPILER_ID} MATCHES "(GNU)+")
|
||||
# Specific flags
|
||||
set(CPP_STD_COMPILER_FLAG "-std=c++14")
|
||||
# Don't even bother with previous version
|
||||
if(CPP_STD_NUMBER LESS 20 AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0)
|
||||
# While GCC 8 supports some C++20. Some platforms have issues with <cstddef> and std::byte
|
||||
if(CPP_STD_NUMBER LESS 20 AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
|
||||
check_cxx_compiler_flag(-std=c++20 HAVE_FLAG_STD_CXX20)
|
||||
check_cxx_compiler_flag(-std=c++2a HAVE_FLAG_STD_CXX2A)
|
||||
if(HAVE_FLAG_STD_CXX20 OR HAVE_FLAG_STD_CXX2A)
|
||||
|
Loading…
Reference in New Issue
Block a user