Skip to content

Commit 309c543

Browse files
author
AntoninRousset
committed
fix(ament_cmake_python): respect DESTDIR during compilation
1 parent 154f198 commit 309c543

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ament_cmake_python/cmake/ament_python_install_module.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function(_ament_cmake_python_install_module module_file)
6565
"execute_process(
6666
COMMAND
6767
\"${python_interpreter}\" \"-m\" \"compileall\"
68-
\"${CMAKE_INSTALL_PREFIX}/${destination}/${module_file}\"
68+
\"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${destination}/${module_file}\"
6969
)"
7070
)
7171
endif()

ament_cmake_python/cmake/ament_python_install_package.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ setup(
192192
"execute_process(
193193
COMMAND
194194
\"${python_interpreter_config}\" \"-m\" \"compileall\"
195-
\"${CMAKE_INSTALL_PREFIX}/${ARG_DESTINATION}/${package_name}\"
195+
\"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${ARG_DESTINATION}/${package_name}\"
196196
)"
197197
)
198198
endif()

0 commit comments

Comments
 (0)