vcpkg/ports/mp-units/config.patch

21 lines
624 B
Diff
Raw Normal View History

diff --git a/src/mp-unitsConfig.cmake b/src/mp-unitsConfig.cmake
2024-06-27 03:20:16 +00:00
index f5bee933d..5effb72bf 100644
--- a/src/mp-unitsConfig.cmake
+++ b/src/mp-unitsConfig.cmake
2024-06-27 03:20:16 +00:00
@@ -23,13 +23,9 @@
include(CMakeFindDependencyMacro)
2024-06-27 03:20:16 +00:00
if(NOT MP_UNITS_API_FREESTANDING AND NOT MP_UNITS_API_STD_FORMAT)
- find_dependency(fmt)
2024-06-27 03:20:16 +00:00
+ find_dependency(fmt CONFIG)
endif()
2024-06-27 03:20:16 +00:00
-if(MP_UNITS_API_CONTRACTS STREQUAL "GSL-LITE")
- find_dependency(gsl-lite)
-elseif(MP_UNITS_API_CONTRACTS STREQUAL "MS-GSL")
- find_dependency(Microsoft.GSL)
-endif()
+find_dependency(gsl-lite CONFIG)
include("${CMAKE_CURRENT_LIST_DIR}/mp-unitsTargets.cmake")