commit 42d860b36da566a7306f3b5a47480efa7a32ccc6 parent 4ac71de6bd0953f323958b3538accbf86a9a9555 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Mon, 23 Dec 2024 19:18:45 +0100 explicitly link pthreads Diffstat:
M | source/synthLib/CMakeLists.txt | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/source/synthLib/CMakeLists.txt b/source/synthLib/CMakeLists.txt @@ -42,6 +42,12 @@ target_link_libraries(synthLib PUBLIC resample dsp56kEmu baseLib) if(NOT MSVC) target_link_libraries(synthLib PUBLIC dl) endif() + +if(UNIX AND NOT APPLE) + find_package(Threads REQUIRED) + target_link_libraries(synthLib PRIVATE Threads::Threads) +endif() + set_property(TARGET synthLib PROPERTY FOLDER "Gearmulator") target_include_directories(synthLib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)