mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 01:07:49 +08:00
19 lines
590 B
Diff
19 lines
590 B
Diff
|
diff --git a/CMake/GenPkgConfig.cmake b/CMake/GenPkgConfig.cmake
|
||
|
index 0e93175bd..9de854022 100644
|
||
|
--- a/CMake/GenPkgConfig.cmake
|
||
|
+++ b/CMake/GenPkgConfig.cmake
|
||
|
@@ -103,6 +103,11 @@ function(gen_pkgconfig_vars)
|
||
|
"<COMPILE_LANG_AND_ID:CUDA,NVIDIA>" "<COMPILE_LANGUAGE:CUDA>"
|
||
|
cflags "${cflags}"
|
||
|
)
|
||
|
+
|
||
|
+ endif()
|
||
|
+ # patch for fmt's generator expression on older CMake
|
||
|
+ if (MSVC)
|
||
|
+ string(REPLACE "$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/utf-8>" "/utf-8" cflags "${cflags}")
|
||
|
endif()
|
||
|
|
||
|
set("${var_prefix}_CFLAGS" "${cflags}" PARENT_SCOPE)
|
||
|
--
|
||
|
2.34.1
|