fix: use find_dependency instead of find_package in generated CMake config file to following best practise
This commit is contained in:
@@ -2,8 +2,9 @@
|
|||||||
@PACKAGE_INIT@
|
@PACKAGE_INIT@
|
||||||
|
|
||||||
# Find Iconv if we have found it.
|
# Find Iconv if we have found it.
|
||||||
|
include(CMakeFindDependencyMacro)
|
||||||
if ("@Iconv_FOUND@")
|
if ("@Iconv_FOUND@")
|
||||||
find_package(Iconv REQUIRED)
|
find_dependency(Iconv REQUIRED)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Include targets file
|
# Include targets file
|
||||||
|
|||||||
Reference in New Issue
Block a user