Build: static lib dependency for ICU (#281)

* Fix missed path for generated files in #277

* Update cmake to include char conversion dependency on static library
This commit is contained in:
bmagistro 2023-12-31 09:54:48 -05:00 committed by GitHub
parent 7ada1c974c
commit 022303bbc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -725,6 +725,14 @@ IF(VMIME_CHARSETCONV_LIB STREQUAL "iconv")
)
ENDIF()
IF(VMIME_BUILD_STATIC_LIBRARY)
TARGET_LINK_LIBRARIES(
${VMIME_LIBRARY_NAME}-static
${TARGET_LINK_LIBRARIES}
${ICONV_LIBRARIES}
)
ENDIF()
SET(VMIME_PKGCONFIG_LIBS "${VMIME_PKGCONFIG_LIBS} ${ICONV_LIBRARIES}")
SET(VMIME_PKGCONFIG_CFLAGS "${VMIME_PKGCONFIG_CFLAGS} -I${ICONV_INCLUDE_DIR}")
@ -747,6 +755,14 @@ ELSEIF(VMIME_CHARSETCONV_LIB STREQUAL "icu")
)
ENDIF()
IF(VMIME_BUILD_STATIC_LIBRARY)
TARGET_LINK_LIBRARIES(
${VMIME_LIBRARY_NAME}-static
${TARGET_LINK_LIBRARIES}
${ICU_LIBRARIES}
)
ENDIF()
SET(VMIME_PKGCONFIG_LIBS "${VMIME_PKGCONFIG_LIBS} ${ICU_LIBRARIES}")
SET(VMIME_PKGCONFIG_CFLAGS "${VMIME_PKGCONFIG_CFLAGS} -I${ICU_INCLUDE_DIRS}")