Fix linking with glibc wraps, libatomic.
This commit is contained in:
parent
3f73163b06
commit
28ff839711
3 changed files with 10 additions and 8 deletions
|
|
@ -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
|
||||
$<TARGET_FILE:desktop-app::linux_glibc_wraps>
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
1
external/qt/CMakeLists.txt
vendored
1
external/qt/CMakeLists.txt
vendored
|
|
@ -357,6 +357,7 @@ else()
|
|||
if (DESKTOP_APP_USE_GLIBC_WRAPS)
|
||||
target_link_libraries(external_qt
|
||||
INTERFACE
|
||||
desktop-app::linux_glibc_wraps
|
||||
$<TARGET_FILE:desktop-app::linux_glibc_wraps>
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue