From 3f73163b0692f34136b4c5fd0d748a2ac91922cd Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 25 Jul 2020 02:28:52 +0400 Subject: [PATCH] Link libatomic statically --- options_linux.cmake | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/options_linux.cmake b/options_linux.cmake index 0a3431d..e630ebf 100644 --- a/options_linux.cmake +++ b/options_linux.cmake @@ -47,8 +47,15 @@ if (NOT DESKTOP_APP_USE_PACKAGED) endif() endif() -target_link_libraries(common_options -INTERFACE - atomic -) +if (DESKTOP_APP_USE_PACKAGED) + target_link_libraries(common_options + INTERFACE + atomic + ) +else() + target_link_static_libraries(common_options + INTERFACE + atomic + ) +endif()