-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kf5i18n] static builds fixes (#20016)
* [kf5i18n] fix libiconv transient dependency * [kf5i18n] update versions
- Loading branch information
Showing
5 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/KF5I18nConfig.cmake.in b/KF5I18nConfig.cmake.in | ||
index 364cc43..af7cd3b 100644 | ||
--- a/KF5I18nConfig.cmake.in | ||
+++ b/KF5I18nConfig.cmake.in | ||
@@ -8,3 +8,4 @@ include("${CMAKE_CURRENT_LIST_DIR}/KF5I18nTargets.cmake") | ||
@PACKAGE_INCLUDE_QCHTARGETS@ | ||
include("${CMAKE_CURRENT_LIST_DIR}/KF5I18nMacros.cmake") | ||
|
||
+find_dependency(Iconv) | ||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index c6b510c..0a25eca 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -38,12 +38,16 @@ ecm_generate_export_header(KF5I18n | ||
EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT} | ||
) | ||
|
||
+find_package(Iconv REQUIRED) | ||
+ | ||
target_include_directories(KF5I18n INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KI18n>") | ||
target_include_directories(KF5I18n PRIVATE ${LibIntl_INCLUDE_DIRS}) | ||
+target_include_directories(KF5I18n PRIVATE ${Iconv_INCLUDE_DIRS}) | ||
|
||
target_link_libraries(KF5I18n PUBLIC Qt5::Core) | ||
# This is only required for platforms which don't use glibc (with glibc LibIntl_LIBRARIES will be empty) | ||
target_link_libraries(KF5I18n PRIVATE ${LibIntl_LIBRARIES}) | ||
+target_link_libraries(KF5I18n PRIVATE ${Iconv_LIBRARIES}) | ||
target_compile_options(KF5I18n PRIVATE -DTRANSLATION_DOMAIN=\"ki18n5\") | ||
|
||
set_target_properties(KF5I18n PROPERTIES VERSION ${KI18N_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters