Skip to content

Commit

Permalink
fix(ament_cmake_python): respect DESTDIR during compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoninRousset committed May 19, 2023
1 parent 154f198 commit 309c543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ament_cmake_python/cmake/ament_python_install_module.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function(_ament_cmake_python_install_module module_file)
"execute_process(
COMMAND
\"${python_interpreter}\" \"-m\" \"compileall\"
\"${CMAKE_INSTALL_PREFIX}/${destination}/${module_file}\"
\"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${destination}/${module_file}\"
)"
)
endif()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ setup(
"execute_process(
COMMAND
\"${python_interpreter_config}\" \"-m\" \"compileall\"
\"${CMAKE_INSTALL_PREFIX}/${ARG_DESTINATION}/${package_name}\"
\"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${ARG_DESTINATION}/${package_name}\"
)"
)
endif()
Expand Down

0 comments on commit 309c543

Please sign in to comment.