File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.30)
22project (cppfront LANGUAGES CXX)
33
4+ set (CMAKE_CXX_STANDARD
5+ 20
6+ CACHE STRING "C++ standard" )
7+
48add_executable (cppfront source /cppfront.cpp)
59add_executable (cppfront::cppfront ALIAS cppfront)
610set_target_properties (cppfront PROPERTIES OUTPUT_NAME cppfront EXPORT_NAME
711 cppfront)
8- target_compile_features (cppfront PRIVATE cxx_std_20)
12+ # target_compile_features(cppfront PRIVATE cxx_std_20)
913target_compile_options (cppfront PRIVATE $<$<CXX_COMPILER_ID:MSVC >:/bigobj>)
1014if (WIN32 AND MINGW)
1115 target_compile_options (cppfront PRIVATE -Wa,-mbig-obj)
Original file line number Diff line number Diff line change @@ -5,5 +5,7 @@ set(VCPKG_LIBRARY_LINKAGE static)
55set (VCPKG_CMAKE_SYSTEM_NAME Darwin)
66set (VCPKG_OSX_ARCHITECTURES x86_64)
77
8- set (CMAKE_VERBOSE_MAKEFILE TRUE )
9- set (CMAKE_MESSAGE_LOG_LEVEL VERBOSE)
8+ if (PORT MATCHES "cppfront" )
9+ message (STATUS "Use c++23" )
10+ set (CMAKE_CXX_STANDARD 23)
11+ endif ()
You can’t perform that action at this time.
0 commit comments