aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-05-13 18:58:55 +0000
committerSaturneric <[email protected]>2022-05-13 18:58:55 +0000
commit83edd6aa60cc76a7d76efcb5147954f6041f8ee2 (patch)
treef63a331830078ba7f2b2726839a4e146bcdbb028
parentfix: slove loading issues at init (diff)
parentfix: solve build issues (diff)
downloadGpgFrontend-83edd6aa60cc76a7d76efcb5147954f6041f8ee2.tar.gz
GpgFrontend-83edd6aa60cc76a7d76efcb5147954f6041f8ee2.zip
Merge remote-tracking branch 'origin/develop-2.0.8' into develop-2.0.8
-rw-r--r--src/core/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 61b6e7b0..ee0e39a1 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -67,10 +67,12 @@ if(APPLE)
target_include_directories(gpgfrontend_core PRIVATE /usr/local/opt/icu4c/include)
target_link_directories(gpgfrontend_core PRIVATE /usr/local/opt/icu4c/lib)
target_link_libraries(gpgfrontend_core PRIVATE icui18n icuuc icudata)
-else()
- find_package(ICU 60.0 REQUIRED COMPONENTS i18n)
- target_link_libraries(gpgfrontend_core PRIVATE ICU::i18n)
-endif()
+else ()
+ find_package(ICU 60.0 REQUIRED COMPONENTS i18n uc data)
+ message("ICU version: ${ICU_VERSION}")
+ message("ICU libraries: ${ICU_LIBRARIES}")
+ target_link_libraries(gpgfrontend_core PRIVATE ${ICU_LIBRARIES})
+endif ()
# link gnupg libraries
target_link_libraries(gpgfrontend_core PUBLIC gpgme assuan gpg-error)