fix: change the find order in PyCodec.

- now PyCodec will try to use Iconv first.
- re-claim the meaning of YYCC_FEAT_ICONV macro.
This commit is contained in:
2025-08-05 14:04:20 +08:00
parent fcac886f07
commit 17540072d3
4 changed files with 11 additions and 8 deletions

View File

@ -80,7 +80,7 @@ PRIVATE
target_compile_definitions(YYCCommonplace
PUBLIC
# Iconv environment macro
$<$<BOOL:${YYCC_ENFORCE_ICONV}>:YYCC_FEAT_ICONV>
$<$<BOOL:${Iconv_FOUND}>:YYCC_FEAT_ICONV>
# OS macro
$<$<PLATFORM_ID:Windows>:YYCC_OS_WINDOWS>
$<$<PLATFORM_ID:Linux>:YYCC_OS_LINUX>