build: find_package() calls don't spell CONFIG explicitly anymore
This commit is contained in:
1 parent
7c4d2cd5e4
commit
9511995d04
5 files changed
+7
-7
No files matched your search
@@ -24,7 +24,7 @@ cmake_minimum_required(VERSION 3.19)
|
||||
|
||||
# find dependencies
|
||||
if(NOT TARGET gsl::gsl-lite)
|
||||
find_package(gsl-lite CONFIG REQUIRED)
|
||||
find_package(gsl-lite REQUIRED)
|
||||
endif()
|
||||
|
||||
# core library definition
|
||||
@@ -83,7 +83,7 @@ target_compile_definitions(
|
||||
|
||||
if(${projectPrefix}USE_LIBFMT)
|
||||
if(NOT TARGET fmt::fmt)
|
||||
find_package(fmt CONFIG REQUIRED)
|
||||
find_package(fmt REQUIRED)
|
||||
endif()
|
||||
target_link_libraries(mp-units-core ${${projectPrefix}TARGET_SCOPE} fmt::fmt)
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user