commit 73c1d9c6d508fb786e28245365b403891a7333d9
parent 2c66d6765b79aea60dd21d709ff90847fd97bd48
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Tue, 24 Dec 2024 00:07:41 +0100
add flag that we prefer to use pthreads
Diffstat:
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/source/jucePluginLib/CMakeLists.txt b/source/jucePluginLib/CMakeLists.txt
@@ -70,6 +70,7 @@ add_custom_command(
target_include_directories(jucePluginLib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)
if(UNIX AND NOT APPLE)
+ set(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package(Threads REQUIRED)
target_link_libraries(jucePluginLib PRIVATE Threads::Threads)
endif()
diff --git a/source/networkLib/CMakeLists.txt b/source/networkLib/CMakeLists.txt
@@ -35,6 +35,7 @@ if(MSVC)
endif()
if(UNIX AND NOT APPLE)
+ set(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package(Threads REQUIRED)
target_link_libraries(networkLib PRIVATE Threads::Threads)
endif()
diff --git a/source/synthLib/CMakeLists.txt b/source/synthLib/CMakeLists.txt
@@ -44,6 +44,7 @@ if(NOT MSVC)
endif()
if(UNIX AND NOT APPLE)
+ set(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package(Threads REQUIRED)
target_link_libraries(synthLib PRIVATE Threads::Threads)
endif()