From 0e538fa29d5780e5805fb3a0a283596e3dff0795 Mon Sep 17 00:00:00 2001 From: Luca Geretti Date: Tue, 31 Oct 2023 14:13:54 -0700 Subject: [PATCH] Use libc++ --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 61539a1..f0ea22a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,9 +37,11 @@ set(CMAKE_MACOSX_RPATH 1) set(BUILD_SHARED_LIBS ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) -set(CMAKE_CXX_STANDARD 23) +set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") + if(NOT WIN32) set(ANY_TARGET_WARN all extra pedantic sign-conversion cast-qual disabled-optimization init-self missing-include-dirs sign-promo switch-default undef redundant-decls