chore(patches): Apply some patches that Debian applies when building deb packages.

This commit is contained in:
Matej Kenda 2024-09-17 12:50:06 +02:00
parent 83377c699c
commit cd06553d89
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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