diff --git a/external/openssl/openssl_common/CMakeLists.txt b/external/openssl/openssl_common/CMakeLists.txt index bae71ed..1e7656f 100644 --- a/external/openssl/openssl_common/CMakeLists.txt +++ b/external/openssl/openssl_common/CMakeLists.txt @@ -29,6 +29,7 @@ if (NOT DESKTOP_APP_USE_PACKAGED) if (DESKTOP_APP_USE_GLIBC_WRAPS) target_link_libraries(external_openssl_common INTERFACE + desktop-app::linux_glibc_wraps $ ) endif() diff --git a/external/qt/CMakeLists.txt b/external/qt/CMakeLists.txt index 885c358..aa5a3a8 100644 --- a/external/qt/CMakeLists.txt +++ b/external/qt/CMakeLists.txt @@ -357,6 +357,7 @@ else() if (DESKTOP_APP_USE_GLIBC_WRAPS) target_link_libraries(external_qt INTERFACE + desktop-app::linux_glibc_wraps $ ) endif() diff --git a/options_linux.cmake b/options_linux.cmake index e630ebf..a23ec02 100644 --- a/options_linux.cmake +++ b/options_linux.cmake @@ -48,14 +48,14 @@ if (NOT DESKTOP_APP_USE_PACKAGED) endif() if (DESKTOP_APP_USE_PACKAGED) - target_link_libraries(common_options - INTERFACE - atomic - ) + find_library(ATOMIC_LIBRARY atomic) else() - target_link_static_libraries(common_options - INTERFACE - atomic - ) + find_library(ATOMIC_LIBRARY libatomic.a) endif() +if (ATOMIC_LIBRARY) + target_link_libraries(common_options + INTERFACE + ${ATOMIC_LIBRARY} + ) +endif()