Skip to content

Commit

Permalink
python: fetch readerwriterqueue
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jan 18, 2025
1 parent 83e89d6 commit ba6732f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
5 changes: 4 additions & 1 deletion cmake/libremidi.deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba6732f

Please sign in to comment.