mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-14 16:29:01 +08:00
16 lines
697 B
Diff
16 lines
697 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index c5bc7b8..2fcdfff 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -274,8 +274,8 @@ if(MSVC)
|
|
target_compile_options(spdlog PRIVATE "/Zc:__cplusplus")
|
|
target_compile_options(spdlog_header_only INTERFACE "/Zc:__cplusplus")
|
|
if(SPDLOG_MSVC_UTF8)
|
|
- target_compile_options(spdlog PUBLIC "/utf-8")
|
|
- target_compile_options(spdlog_header_only INTERFACE "/utf-8")
|
|
+ target_compile_options(spdlog PUBLIC $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/utf-8>)
|
|
+ target_compile_options(spdlog_header_only INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/utf-8>)
|
|
endif()
|
|
endif()
|
|
|