2021-11-16 06:18:12 +08:00
|
|
|
diff --git a/src/mp-unitsConfig.cmake b/src/mp-unitsConfig.cmake
|
2023-06-22 13:41:20 +08:00
|
|
|
index 668fd97d..0eebeded 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
|
|
|
|
|
|
|
if(UNITS_USE_LIBFMT)
|
|
|
|
- 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")
|