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