fix: use find_dependency instead of find_package in generated CMake config file to following best practise

This commit is contained in:
2026-08-07 10:15:36 +08:00
parent 422aa152ff
commit df77c2f150
+2 -1
View File
@@ -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