Skip to content

Commit 249bbca

Browse files
committed
Replace find_package with find_dependency.
1 parent deab76b commit 249bbca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmake/Config.cmake.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@
3838

3939
@PACKAGE_INIT@
4040

41-
if(NOT TARGET Threads::Threads)
42-
find_package(Threads REQUIRED)
43-
endif()
41+
include(CMakeFindDependencyMacro)
42+
find_dependency(Threads REQUIRED)
4443

4544
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
4645
check_required_components("@PROJECT_NAME@")

0 commit comments

Comments
 (0)