Skip to content

Commit badd2c6

Browse files
TheStaticTurtlejcelerier
authored andcommitted
Added an explicit requirement on readerwriterqueue for the python binding
1 parent 0560982 commit badd2c6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

bindings/python/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ add_subdirectory(../.. libremidi-src)
1212

1313
find_package(Python 3.8 COMPONENTS Interpreter Development.Module REQUIRED)
1414

15+
if(NOT readerwriterqueue_FOUND AND NOT TARGET readerwriterqueue)
16+
FetchContent_Declare(
17+
readerwriterqueue
18+
GIT_REPOSITORY https://github.com/cameron314/readerwriterqueue
19+
GIT_TAG master
20+
)
21+
22+
FetchContent_MakeAvailable(readerwriterqueue)
23+
endif()
24+
1525
FetchContent_Declare(
1626
nanobind
1727
GIT_REPOSITORY https://github.com/wjakob/nanobind

0 commit comments

Comments
 (0)