summaryrefslogtreecommitdiff
path: root/media-sound/audacity/files/audacity-3.7.0-local-threadpool-libraries.patch
blob: c47ae9bd508ae0da6a10ab4e9543551677e0386b (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
29
30
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

REBASED

--- a/cmake-proxies/cmake-modules/DependenciesList.cmake
+++ b/cmake-proxies/cmake-modules/DependenciesList.cmake
@@ -63,7 +63,6 @@ endif()
 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
@@ -53,4 +53,8 @@ PRIVATE
 set ( DEFINES INTERFACE "HAS_NETWORKING" PRIVATE "WIN32_LEAN_AND_MEAN" )
 
 
+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}" "" )