Skip to content

Commit

Permalink
chore(patches): Apply some patches that Debian applies when building …
Browse files Browse the repository at this point in the history
…deb packages.
  • Loading branch information
matejk committed Sep 18, 2024
1 parent 83377c6 commit cd06553
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Foundation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions Foundation/testsuite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd06553

Please sign in to comment.