Skip to content

Commit

Permalink
Update CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
KellanClark committed Jan 7, 2024
1 parent fe9999c commit d908afc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.20...3.28)
project(Ortin)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
Expand Down Expand Up @@ -62,8 +62,10 @@ target_compile_definitions(fmt PUBLIC FMT_EXCEPTIONS=0)

if (True OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")
target_compile_options(Ortin PRIVATE
/Zc:__cplusplus
/std:c++20
#/Zc:__cplusplus
#/std:c++20
/clang:-ftemplate-depth=10000
/clang:-fconstexpr-depth=10000
)
else()
target_compile_options(Ortin PRIVATE
Expand Down

0 comments on commit d908afc

Please sign in to comment.