From 633003f40a4f006fbc2c29a6846dc8d777981445 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Fri, 22 Nov 2024 11:50:05 +0200 Subject: [PATCH] Update CMakeLists.txt comment --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fcdfff1..00b1b5c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -274,6 +274,9 @@ if(MSVC) target_compile_options(spdlog PRIVATE "/Zc:__cplusplus") target_compile_options(spdlog_header_only INTERFACE "/Zc:__cplusplus") if(SPDLOG_MSVC_UTF8) + # fmt requires the /utf-8 flag with huilding with msvc. + # see https://github.com/fmtlib/fmt/pull/4159 on why the additional + # "$<$,$>" are needed target_compile_options(spdlog PUBLIC $<$,$>:/utf-8>) target_compile_options(spdlog_header_only INTERFACE $<$,$>:/utf-8>) endif()