mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 14:57:55 +08:00
18 lines
756 B
Diff
18 lines
756 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 1ca64fff..1606e886 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -365,8 +365,8 @@ if (NOT MSVC)
|
|
# Unicode is always supported on compilers other than MSVC.
|
|
elseif (FMT_UNICODE)
|
|
# Unicode support requires compiling with /utf-8.
|
|
- target_compile_options(fmt PUBLIC $<$<COMPILE_LANGUAGE:CXX>:/utf-8>)
|
|
- target_compile_options(fmt-header-only INTERFACE $<$<COMPILE_LANGUAGE:CXX>:/utf-8>)
|
|
+ target_compile_options(fmt PUBLIC $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/utf-8>)
|
|
+ target_compile_options(fmt-header-only INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/utf-8>)
|
|
else ()
|
|
target_compile_definitions(fmt PUBLIC FMT_UNICODE=0)
|
|
endif ()
|
|
--
|
|
2.34.1
|