File: CMakeLists.patch

package info (click to toggle)
python-samplerate 0.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 272 kB
  • sloc: cpp: 468; python: 468; makefile: 43; sh: 1
file content (31 lines) | stat: -rw-r--r-- 1,236 bytes parent folder | download
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
31
Index: python-samplerate/CMakeLists.txt
===================================================================
--- python-samplerate.orig/CMakeLists.txt
+++ python-samplerate/CMakeLists.txt
@@ -8,12 +8,23 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
 
 set(PYBIND11_FINDPYTHON ON)
 
-# adds the external dependencies
-add_subdirectory(external)
+###################################################
+# no external dependencies for Debian
+###################################################
+# # adds the external dependencies
+# add_subdirectory(external)
 
+set(PYBIND11_FINDPYTHON ON)
+find_package(pybind11 CONFIG REQUIRED)
 pybind11_add_module(python-samplerate src/samplerate.cpp)
 
-target_include_directories(python-samplerate PRIVATE ./external/libsamplerate/include)
+###################################################
+# here is the path to C headers provided by the package python3-samplerate
+###################################################
+# 
+# target_include_directories(python-samplerate PRIVATE ./external/libsamplerate/include)
+
+target_include_directories(python-samplerate PRIVATE /usr/lib/python3/dist-packages/pybind11/include/)
 
 if(MSVC)
     target_compile_options(python-samplerate PRIVATE /EHsc /MP /bigobj)