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@
|
||||
|
||||
# Find Iconv if we have found it.
|
||||
include(CMakeFindDependencyMacro)
|
||||
if ("@Iconv_FOUND@")
|
||||
find_package(Iconv REQUIRED)
|
||||
find_dependency(Iconv REQUIRED)
|
||||
endif ()
|
||||
|
||||
# Include targets file
|
||||
|
||||
Reference in New Issue
Block a user