Skip to content

Commit c43980c

Browse files
committed
Closes #18; fix: Fix problem with PYTHON_INSTALL_DIR not being set when installing with ROS 2
1 parent 1af8600 commit c43980c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ if(PYTHON_BINDINGS)
6969
myactuator_rmd
7070
)
7171

72-
install(TARGETS myactuator_rmd_py
73-
DESTINATION ${PYTHON_INSTALL_DIR}/${PROJECT_NAME}
74-
)
7572
if(ament_cmake_FOUND)
7673
find_package(ament_cmake_python REQUIRED)
7774
ament_python_install_package(${PROJECT_NAME})
7875
endif()
76+
install(TARGETS myactuator_rmd_py
77+
DESTINATION ${PYTHON_INSTALL_DIR}/${PROJECT_NAME}
78+
)
7979
endif()
8080

8181
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)

0 commit comments

Comments
 (0)