diff options
author | Saturneric <[email protected]> | 2022-05-13 03:47:22 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-05-13 03:47:22 +0000 |
commit | 2f79c428b5eab161ae6814a713002733b7153029 (patch) | |
tree | 53de11a6474d32ceb336c8d3a4be5f946a2e630a | |
parent | feat(ci): remove OPENSSL_ROOT_DIR in cmake config (diff) | |
download | GpgFrontend-2f79c428b5eab161ae6814a713002733b7153029.tar.gz GpgFrontend-2f79c428b5eab161ae6814a713002733b7153029.zip |
fix: solve build issues
1. target_link_libraries scope
2. icu version minimum
-rw-r--r-- | src/core/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 1a1b7c6d..c7ba44c6 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -68,7 +68,7 @@ if(APPLE) target_link_directories(gpgfrontend_core PRIVATE /usr/local/opt/icu4c/lib) target_link_libraries(gpgfrontend_core PRIVATE icui18n icuuc) else() - find_package(ICU 70.0 REQUIRED COMPONENTS i18n) + find_package(ICU 60.0 REQUIRED COMPONENTS i18n) target_link_libraries(gpgfrontend_core PRIVATE ICU::i18n) endif() @@ -99,7 +99,7 @@ target_compile_features(gpgfrontend_core PUBLIC cxx_std_17) # link for different platforms if (MINGW) message(STATUS "Link GPG Static Library For MINGW") - target_link_libraries(gpgfrontend_core wsock32) + target_link_libraries(gpgfrontend_core PUBLIC wsock32) elseif (APPLE) message(STATUS "Link GPG Static Library For macOS") target_link_libraries(gpgfrontend_core PUBLIC dl) @@ -115,5 +115,5 @@ elseif (APPLE) else () # linux message(STATUS "Link GPG Static Library For Unix") - target_link_libraries(gpgfrontend_core pthread dl) + target_link_libraries(gpgfrontend_core PUBLIC pthread dl) endif () |