There was an error while loading. Please reload this page.
1 parent ce78273 commit be3b0eeCopy full SHA for be3b0ee
1 file changed
CMakeLists.txt
@@ -17,6 +17,10 @@ set(FMT_SYSTEM_HEADERS ON CACHE BOOL "" FORCE)
17
set(FMT_INSTALL OFF CACHE BOOL "" FORCE)
18
add_subdirectory(lib/fmt)
19
target_link_libraries(stringify PUBLIC fmt::fmt)
20
+# Recent MSVC versions define __cpp_nontype_template_args >= 201911L, which makes fmt switch to a
21
+# templated `operator""_a` (using a fixed_string non-type template parameter) that MSVC fails to
22
+# match against `"name"_a`, breaking the build. Force fmt to use its runtime `const char*` overload.
23
+target_compile_definitions(fmt PUBLIC FMT_USE_NONTYPE_TEMPLATE_ARGS=0)
24
install(FILES "lib/fmt/LICENSE" DESTINATION "license/fmt")
25
26
# Set warning level
0 commit comments