From cd06553d89aee4bf7b5c820199121cd25d5bce94 Mon Sep 17 00:00:00 2001 From: Matej Kenda Date: Tue, 17 Sep 2024 12:50:06 +0200 Subject: [PATCH] chore(patches): Apply some patches that Debian applies when building deb packages. --- Foundation/CMakeLists.txt | 2 +- Foundation/testsuite/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt index a417811fd9..6d6356d918 100644 --- a/Foundation/CMakeLists.txt +++ b/Foundation/CMakeLists.txt @@ -162,7 +162,7 @@ else() target_link_libraries(Foundation PUBLIC pthread ${CMAKE_DL_LIBS} rt) else() target_compile_definitions(Foundation PUBLIC _XOPEN_SOURCE=500 POCO_HAVE_FD_EPOLL) - target_link_libraries(Foundation PUBLIC pthread ${CMAKE_DL_LIBS} rt) + target_link_libraries(Foundation PUBLIC pthread atomic ${CMAKE_DL_LIBS} rt) endif() endif(APPLE) endif(UNIX AND NOT ANDROID) diff --git a/Foundation/testsuite/CMakeLists.txt b/Foundation/testsuite/CMakeLists.txt index d421ae94ab..25429709d2 100644 --- a/Foundation/testsuite/CMakeLists.txt +++ b/Foundation/testsuite/CMakeLists.txt @@ -47,6 +47,10 @@ if(UNIX AND NOT ANDROID) target_link_libraries(Foundation-testrunner PUBLIC pthread) endif(UNIX AND NOT ANDROID) +if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") + target_link_libraries(Foundation-testrunner PUBLIC atomic) +endif() + # TestApp add_executable(TestApp src/TestApp.cpp) # The test is run in the runtime directory. So the TestApp is built there too because it is used by the tests