diff --git a/CMakeLists.txt b/CMakeLists.txt index 811e588a..6319070d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -275,8 +275,8 @@ if(MSVC) target_compile_options(spdlog_header_only INTERFACE "/Zc:__cplusplus") if(SPDLOG_MSVC_UTF8) # fmtlib requires the /utf-8 flag when building with msvc. - # see https://github.com/fmtlib/fmt/pull/4159 on why the additional - # "$<$,$>" checks are needed + # see https://github.com/fmtlib/fmt/pull/4159 on why the purpose of the additional + # "$<$,$>" target_compile_options(spdlog PUBLIC $<$,$>:/utf-8>) target_compile_options(spdlog_header_only INTERFACE $<$,$>:/utf-8>) endif()