2021-11-16 06:18:12 +08:00
|
|
|
diff --git a/src/mp-unitsConfig.cmake b/src/mp-unitsConfig.cmake
|
2024-06-27 11:20:16 +08:00
|
|
|
index f5bee933d..5effb72bf 100644
|
2021-11-16 06:18:12 +08:00
|
|
|
--- a/src/mp-unitsConfig.cmake
|
|
|
|
+++ b/src/mp-unitsConfig.cmake
|
2024-06-27 11:20:16 +08:00
|
|
|
@@ -23,13 +23,9 @@
|
2021-11-16 06:18:12 +08:00
|
|
|
include(CMakeFindDependencyMacro)
|
2023-06-22 13:41:20 +08:00
|
|
|
|
2024-06-27 11:20:16 +08:00
|
|
|
if(NOT MP_UNITS_API_FREESTANDING AND NOT MP_UNITS_API_STD_FORMAT)
|
2023-06-22 13:41:20 +08:00
|
|
|
- find_dependency(fmt)
|
2024-06-27 11:20:16 +08:00
|
|
|
+ find_dependency(fmt CONFIG)
|
2023-06-22 13:41:20 +08:00
|
|
|
endif()
|
|
|
|
|
2024-06-27 11:20:16 +08: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()
|
2021-11-16 06:18:12 +08:00
|
|
|
+find_dependency(gsl-lite CONFIG)
|
|
|
|
|
2023-12-15 14:52:38 +08:00
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/mp-unitsTargets.cmake")
|