From 194bbc8f8441b90c5eb5822e36fda27a868c401a Mon Sep 17 00:00:00 2001 From: eminyous Date: Sun, 22 Mar 2026 22:49:42 -0400 Subject: [PATCH] Fix CMake configuration for bindings source path --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 231fbe5b..15f0013c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,8 +37,8 @@ list(POP_BACK CMAKE_MESSAGE_INDENT) FetchContent_MakeAvailable(osqp) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/bindings.cpp.in - ${CMAKE_CURRENT_SOURCE_DIR}/src/bindings.cpp) -pybind11_add_module(${OSQP_EXT_MODULE_NAME} src/bindings.cpp) + ${CMAKE_CURRENT_BINARY_DIR}/src/bindings.cpp) +pybind11_add_module(${OSQP_EXT_MODULE_NAME} ${CMAKE_CURRENT_BINARY_DIR}/src/bindings.cpp) install(TARGETS ${OSQP_EXT_MODULE_NAME} DESTINATION . COMPONENT python) # TODO: We shouldn't have to do this once the interfaces are set up correctly