aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)