summaryrefslogtreecommitdiff
path: root/media-sound/audacity/files/audacity-3.3.3-local-threadpool-libraries.patch
blob: 8ca232d5896a3117fed2736cbab47b3a17e3ac4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
This is an adapted version of:

From 7b5f56ec441fb472b61bae14e1efa353db4d7aca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= <arsen@aarsen.me>
Date: Sun, 18 Dec 2022 13:37:35 +0100
Subject: [PATCH] Allow using local dependency for threadpool

--- a/cmake-proxies/cmake-modules/DependenciesList.cmake
+++ b/cmake-proxies/cmake-modules/DependenciesList.cmake
@@ -56,7 +56,6 @@
 audacity_find_package(PortAudio REQUIRED)
 
 if( ${_OPT}has_networking )
-   audacity_find_package(ThreadPool REQUIRED)
    audacity_find_package(CURL REQUIRED CONAN_PACKAGE_NAME libcurl)
 endif()
 
--- a/libraries/lib-network-manager/CMakeLists.txt
+++ b/libraries/lib-network-manager/CMakeLists.txt
@@ -43,4 +43,8 @@
 
 set ( DEFINES INTERFACE "HAS_NETWORKING" )
 
+add_library ( threadpool::threadpool INTERFACE IMPORTED GLOBAL )
+target_include_directories ( threadpool::threadpool INTERFACE
+  ${CMAKE_SOURCE_DIR}/lib-src/threadpool
+)
 audacity_library( ${TARGET} "${SOURCES}" "${LIBRARIES}" "${DEFINES}" "" )