mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 13:59:01 +08:00
14 lines
518 B
Diff
14 lines
518 B
Diff
|
diff --git a/src/cmake/externalpackages.cmake b/src/cmake/externalpackages.cmake
|
||
|
index 4f1dfaf..1a17d1e 100644
|
||
|
--- a/src/cmake/externalpackages.cmake
|
||
|
+++ b/src/cmake/externalpackages.cmake
|
||
|
@@ -385,5 +385,7 @@ macro (find_or_download_fmt)
|
||
|
checked_find_package (fmt REQUIRED)
|
||
|
endmacro()
|
||
|
|
||
|
-find_or_download_fmt()
|
||
|
+find_package(fmt CONFIG REQUIRED)
|
||
|
+get_property(FMT_INCLUDES TARGET fmt::fmt PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
|
||
|
+checked_find_package (fmt CONFIG REQUIRED)
|
||
|
include_directories (${FMT_INCLUDES})
|