aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-05-13 18:37:30 +0000
committerSaturneric <[email protected]>2022-05-13 18:37:30 +0000
commit6b17de98f2adaa9d6cfd079dcdf8d6529538e0cc (patch)
tree222c805d973f3aa931000d853de1e168f08fa4f6
parentfix: slove shared link problem (diff)
downloadGpgFrontend-6b17de98f2adaa9d6cfd079dcdf8d6529538e0cc.tar.gz
GpgFrontend-6b17de98f2adaa9d6cfd079dcdf8d6529538e0cc.zip
fix: solve build issues
1. target_link_libraries scope 2. icu version minimum
-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)