diff options
author | Saturneric <[email protected]> | 2022-05-07 19:19:51 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-05-07 19:19:51 +0000 |
commit | 978b0ccc9b20d8d7aa4daa3722dbb81572ad2332 (patch) | |
tree | f035298215669cee7963ee20ed0bc77044be03d6 | |
parent | fix: remove vmime include (diff) | |
download | GpgFrontend-978b0ccc9b20d8d7aa4daa3722dbb81572ad2332.tar.gz GpgFrontend-978b0ccc9b20d8d7aa4daa3722dbb81572ad2332.zip |
fix: link issue of intl in linux platform
-rw-r--r-- | src/core/CMakeLists.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 81078d4f..e87e32f3 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -44,23 +44,27 @@ set(UTILS_DIR ${CMAKE_SOURCE_DIR}/utils) set(GPGME_LIB_DIR ${UTILS_DIR}/gpgme/lib) # link third-party libraries -target_link_libraries(gpgfrontend_core config++ intl) +target_link_libraries(gpgfrontend_core config++) +if (NOT LINUX) + target_link_libraries(gpgfrontend_core config++ intl) +endif () + # easyloggingpp target_include_directories(gpgfrontend_core PUBLIC ${CMAKE_SOURCE_DIR}/third_party/easyloggingpp/src) target_sources(gpgfrontend_core PUBLIC ${CMAKE_SOURCE_DIR}/third_party/easyloggingpp/src/easylogging++.cc) -if(LINUX AND GPGFRONTEND_GENERATE_LINUX_INSTALL_SOFTWARE) +if (LINUX AND GPGFRONTEND_GENERATE_LINUX_INSTALL_SOFTWARE) # froce to link gnupg static libraries for deb find_library(GPG_ERROR_LIB libgpg-error.a) find_library(ASSUAN_LIB libassuan.a) find_library(GPGME_LIB libgpgme.a) target_link_libraries(gpgfrontend_core ${GPGME_LIB} ${ASSUAN_LIB} ${GPG_ERROR_LIB}) -else() +else () # link gnupg libraries target_link_libraries(gpgfrontend_core gpgme assuan gpg-error) -endif() +endif () # link openssl target_link_libraries(gpgfrontend_core OpenSSL::SSL OpenSSL::Crypto) # link Qt AES |