This is an adapted version of: From 7b5f56ec441fb472b61bae14e1efa353db4d7aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= 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}" "" )