From 92ce0e29cbedab89f84df3b10af59431eb1b4476 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Tue, 3 Feb 2026 16:36:15 +0800 Subject: [PATCH] fix: find iconv if we include it --- cmake/YYCCommonplaceConfig.cmake.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/YYCCommonplaceConfig.cmake.in b/cmake/YYCCommonplaceConfig.cmake.in index 8add9bb..99dab65 100644 --- a/cmake/YYCCommonplaceConfig.cmake.in +++ b/cmake/YYCCommonplaceConfig.cmake.in @@ -1,7 +1,12 @@ @PACKAGE_INIT@ +# Find Iconv if we have found it. +if ("@Iconv_FOUND@") + find_package(Iconv REQUIRED) +endif () + # Include targets file include("${CMAKE_CURRENT_LIST_DIR}/YYCCommonplaceTargets.cmake") -check_required_components(YYCCommonplace) \ No newline at end of file +check_required_components(YYCCommonplace)