Skip to content

Commit

Permalink
[Py] set LIBRARY_OUTPUT_DIRECTORY for _alpaqa module
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Mar 30, 2024
1 parent e74bda9 commit 9140d74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions interfaces/python/cmake/Pybind11Stubgen.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
function(pybind11_stubgen target)

find_package(Python3 REQUIRED COMPONENTS Interpreter)
set_target_properties(${target} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "$<CONFIG>/${PY_BUILD_CMAKE_MODULE_NAME}")
add_custom_command(TARGET ${target} POST_BUILD
COMMAND ${Python3_EXECUTABLE} -m pybind11_stubgen
${PY_BUILD_CMAKE_MODULE_NAME}.$<TARGET_FILE_BASE_NAME:${target}>
Expand Down

0 comments on commit 9140d74

Please sign in to comment.