diff --git a/CMakeLists.txt b/CMakeLists.txt index 109045f..e549b39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,6 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(GAMECOE_SOURCE_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}) include(cmake/gamecoe_config.cmake) -check_compiler_version() if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug) diff --git a/cmake/c++20.cmake b/cmake/c++20.cmake deleted file mode 100644 index 1be5f80..0000000 --- a/cmake/c++20.cmake +++ /dev/null @@ -1,35 +0,0 @@ -function(check_compiler_version) - message(STATUS "[gamecoe] Using compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}") - - if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10") - message(FATAL_ERROR "[gamecoe] GCC 10+ required for C++20 support (you're using ${CMAKE_CXX_COMPILER_VERSION})") - elseif(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "11") - message(WARNING "[gamecoe] GCC 11+ recommended for full C++20 support (you're using ${CMAKE_CXX_COMPILER_VERSION})") - endif() - endif() - - if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10") - message(FATAL_ERROR "[gamecoe] Clang 10+ required for basic C++20 support (you're using ${CMAKE_CXX_COMPILER_VERSION})") - elseif(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "12") - message(WARNING "[gamecoe] Clang 12+ recommended for good C++20 support (you're using ${CMAKE_CXX_COMPILER_VERSION})") - endif() - endif() - - if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "19.28") - message(FATAL_ERROR "[gamecoe] MSVC 2019 16.8+ required for C++20 support (you're using ${CMAKE_CXX_COMPILER_VERSION})") - elseif(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "19.29") - message(WARNING "[gamecoe] MSVC 2019 16.11+ recommended for full C++20 support (you're using ${CMAKE_CXX_COMPILER_VERSION})") - endif() - endif() - - if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") - if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "13.0") - message(FATAL_ERROR "[gamecoe] Apple Clang 13+ (Xcode 13+) required for C++20 support (you're using ${CMAKE_CXX_COMPILER_VERSION})") - elseif(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "14.0") - message(WARNING "[gamecoe] Apple Clang 14+ (Xcode 14+) recommended for better C++20 support (you're using ${CMAKE_CXX_COMPILER_VERSION})") - endif() - endif() -endfunction() \ No newline at end of file diff --git a/cmake/gamecoe_config.cmake b/cmake/gamecoe_config.cmake index 4911d1d..7dc5d2a 100644 --- a/cmake/gamecoe_config.cmake +++ b/cmake/gamecoe_config.cmake @@ -1,7 +1,6 @@ # gamecoe CMake Configuration # Master include file for all gamecoe cmake utilities -include(${CMAKE_CURRENT_LIST_DIR}/c++20.cmake) include(${CMAKE_CURRENT_LIST_DIR}/glfw.cmake) include(${CMAKE_CURRENT_LIST_DIR}/glad.cmake) include(${CMAKE_CURRENT_LIST_DIR}/glm.cmake)