diff --git a/sudio/rateshift/CMakeLists.txt b/sudio/rateshift/CMakeLists.txt index 8b75dd5..322c643 100644 --- a/sudio/rateshift/CMakeLists.txt +++ b/sudio/rateshift/CMakeLists.txt @@ -1,4 +1,4 @@ -# sudio\rateshift\CMakeLists.txt + cmake_minimum_required(VERSION 3.15) project(python_rateshift LANGUAGES CXX) @@ -20,6 +20,8 @@ else() add_subdirectory(libsamplerate) endif() +set_target_properties(samplerate PROPERTIES POSITION_INDEPENDENT_CODE ON) + pybind11_add_module(python_rateshift src/python_bindings.cpp src/rateshift.cpp