Skip to content

Commit f4bf4c4

Browse files
committed
use c++23
1 parent 814bcc3 commit f4bf4c4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

cmake/vcpkg/ports/cppfront/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
cmake_minimum_required(VERSION 3.30)
22
project(cppfront LANGUAGES CXX)
33

4+
set(CMAKE_CXX_STANDARD
5+
20
6+
CACHE STRING "C++ standard")
7+
48
add_executable(cppfront source/cppfront.cpp)
59
add_executable(cppfront::cppfront ALIAS cppfront)
610
set_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)
913
target_compile_options(cppfront PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/bigobj>)
1014
if(WIN32 AND MINGW)
1115
target_compile_options(cppfront PRIVATE -Wa,-mbig-obj)

cmake/vcpkg/triplets/x64-osx.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ set(VCPKG_LIBRARY_LINKAGE static)
55
set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
66
set(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()

0 commit comments

Comments
 (0)