From 412d988d1cd4c2887d3778176889744c2f52869c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Sat, 18 Jan 2025 17:09:48 -0500 Subject: [PATCH] python: fetch readerwriterqueue --- bindings/python/CMakeLists.txt | 1 + cmake/libremidi.deps.cmake | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index f914daa..ad5f2f9 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.28 FATAL_ERROR) project(pylibremidi) set(LIBREMIDI_HEADER_ONLY 1) +set(LIBREMIDI_NEEDS_READERWRITERQUEUE 1) add_subdirectory(../.. libremidi-src) find_package(Python 3.8 COMPONENTS Interpreter Development.Module REQUIRED) diff --git a/cmake/libremidi.deps.cmake b/cmake/libremidi.deps.cmake index 7fae70a..f2089c0 100644 --- a/cmake/libremidi.deps.cmake +++ b/cmake/libremidi.deps.cmake @@ -36,7 +36,10 @@ if(LIBREMIDI_FIND_BOOST) endif() # readerwriterqueue -if(NOT LIBREMIDI_NO_PIPEWIRE AND NOT TARGET readerwriterqueue) +if(NOT LIBREMIDI_NO_PIPEWIRE) + set(LIBREMIDI_NEEDS_READERWRITERQUEUE 1) +endif() +if(LIBREMIDI_NEEDS_READERWRITERQUEUE AND NOT TARGET readerwriterqueue) FetchContent_Declare( readerwriterqueue GIT_REPOSITORY https://github.com/cameron314/readerwriterqueue