@@ -91,7 +91,7 @@ if(CMAKE_GENERATOR STREQUAL "Ninja" AND FMT_USE_MODULES)
9191 ${LLVM_LIBC_SOURCE} /std.cppm
9292 ${LLVM_LIBC_SOURCE} /std.compat.cppm
9393 )
94- target_compile_features (${NAME} PUBLIC cxx_std_26 )
94+ target_compile_features (${NAME} PUBLIC cxx_std_23 )
9595 target_compile_definitions (
9696 ${NAME}
9797 PUBLIC _LIBCPP_HAS_NO_LOCALIZATION
@@ -110,13 +110,13 @@ if(CMAKE_GENERATOR STREQUAL "Ninja" AND FMT_USE_MODULES)
110110 CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
111111 AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15.0
112112 )
113- add_compile_options (-stdlib=libc ++)
114- add_link_options (-stdlib=libc ++)
113+ add_compile_options (-stdlib=libstdc ++)
114+ add_link_options (-stdlib=libstdc ++)
115115 endif ()
116116
117117 # Tell CMake that we explicitly want `import std`.
118118 # This will initialize the property on all targets declared after this to 1
119- if (26 IN_LIST CMAKE_CXX_COMPILER_IMPORT_STD)
119+ if (23 IN_LIST CMAKE_CXX_COMPILER_IMPORT_STD)
120120 # XXX NO! set(CMAKE_CXX_MODULE_STD ON)
121121 endif ()
122122
@@ -195,7 +195,7 @@ target_sources(
195195)
196196
197197target_compile_definitions (fmt-header-only INTERFACE FMT_HEADER_ONLY)
198- target_compile_features (fmt-header-only INTERFACE cxx_std_26 )
198+ target_compile_features (fmt-header-only INTERFACE cxx_std_23 )
199199
200200# Unicode support requires compiling with /utf-8.
201201target_compile_options (
@@ -221,7 +221,7 @@ if(FMT_SEPARATE_COMPILATION)
221221 fmt
222222 PUBLIC $<$<AND :$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC >>:/utf-8>
223223 )
224- target_compile_features (fmt INTERFACE cxx_std_26 )
224+ target_compile_features (fmt INTERFACE cxx_std_23 )
225225
226226 if (FMT_USE_MODULES)
227227 message (STATUS "FMT_USE_MODULES=${FMT_USE_MODULES} " )
0 commit comments