mirror of
https://github.com/ProjectSkyfire/SkyFire_548
synced 2026-08-18 06:32:13 -04:00
Require C++23 for Clang builds
Signed-off-by: AlterEgo <admin@projectskyfire.org>
This commit is contained in:
parent
f3eaada172
commit
8c624c98a5
1 changed files with 5 additions and 5 deletions
|
|
@ -7,13 +7,13 @@
|
|||
# Set build-directive (used in core to tell which buildtype we used)
|
||||
add_definitions(-D_BUILD_DIRECTIVE='"${CMAKE_BUILD_TYPE}"')
|
||||
|
||||
# Check C++20 compiler support
|
||||
# Check C++23 compiler support
|
||||
include(CheckCXXCompilerFlag)
|
||||
CHECK_CXX_COMPILER_FLAG("-std=c++20" COMPILER_SUPPORTS_CXX20)
|
||||
if(COMPILER_SUPPORTS_CXX20)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20")
|
||||
CHECK_CXX_COMPILER_FLAG("-std=c++23" COMPILER_SUPPORTS_CXX23)
|
||||
if(COMPILER_SUPPORTS_CXX23)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++23")
|
||||
else()
|
||||
message(FATAL_ERROR "Error, SkyFire requires a compiler that supports C++20!")
|
||||
message(FATAL_ERROR "Error, SkyFire requires a compiler that supports C++23!")
|
||||
endif()
|
||||
|
||||
if (WIN32)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue