2021-11-16 06:18:12 +08:00
|
|
|
diff --git a/src/mp-unitsConfig.cmake b/src/mp-unitsConfig.cmake
|
2023-10-03 07:36:17 +08:00
|
|
|
index 10f82a82..ea637abd 100644
|
2021-11-16 06:18:12 +08:00
|
|
|
--- a/src/mp-unitsConfig.cmake
|
|
|
|
+++ b/src/mp-unitsConfig.cmake
|
2023-06-22 13:41:20 +08:00
|
|
|
@@ -42,10 +42,10 @@ endfunction()
|
2021-11-16 06:18:12 +08:00
|
|
|
include(CMakeFindDependencyMacro)
|
2023-06-22 13:41:20 +08:00
|
|
|
|
2023-10-03 07:36:17 +08:00
|
|
|
if(MP_UNITS_USE_LIBFMT)
|
2023-06-22 13:41:20 +08:00
|
|
|
- find_dependency(fmt)
|
|
|
|
+ find_dependency(fmt CONFIG)
|
|
|
|
endif()
|
|
|
|
|
2021-11-16 06:18:12 +08:00
|
|
|
-find_dependency(gsl-lite)
|
|
|
|
+find_dependency(gsl-lite CONFIG)
|
|
|
|
|
|
|
|
# add range-v3 dependency only for clang + libc++
|
2023-06-22 13:41:20 +08:00
|
|
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|