Skip to content

Commit fbeeb0b

Browse files
authored
Merge pull request #2554 from EtienneAr/topic/ament-ros2
Remove small code duplication in CMakelists.txt for ROS2/Ament packaging
2 parents 6acfc6b + 484ce3f commit fbeeb0b

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

CMakeLists.txt

-12
Original file line numberDiff line numberDiff line change
@@ -521,17 +521,5 @@ pkg_config_append_cflags("${CFLAGS_OPTIONS}")
521521

522522
# Install catkin package.xml
523523
install(FILES package.xml DESTINATION share/${PROJECT_NAME})
524-
# Allows Colcon to find non-Ament packages when using workspace underlays
525-
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} "")
526-
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME}
527-
DESTINATION share/ament_index/resource_index/packages)
528-
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/${PROJECT_NAME}/hook/ament_prefix_path.dsv
529-
"prepend-non-duplicate;AMENT_PREFIX_PATH;")
530-
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/${PROJECT_NAME}/hook/ament_prefix_path.dsv
531-
DESTINATION share/${PROJECT_NAME}/hook)
532-
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/${PROJECT_NAME}/hook/python_path.dsv
533-
"prepend-non-duplicate;PYTHONPATH;${PYTHON_SITELIB}")
534-
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/${PROJECT_NAME}/hook/python_path.dsv
535-
DESTINATION share/${PROJECT_NAME}/hook)
536524

537525
setup_project_finalize()

pixi.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ configure = { cmd = [
5656
"-DBUILD_WITH_SDF_SUPPORT=$PINOCCHIO_SDF_SUPPORT",
5757
"-DBUILD_PYTHON_BINDINGS_WITH_BOOST_MPFR_SUPPORT=$PINOCCHIO_MPFR_SUPPORT",
5858
] }
59-
build = { cmd = "cmake --build build --target all", depends_on = ["configure"] }
59+
build = { cmd = "cmake --build build --target all", depends-on = ["configure"] }
6060
clean = { cmd = "rm -rf build" }
61-
test = { cmd = "ctest --test-dir build --output-on-failure", depends_on = [
61+
test = { cmd = "ctest --test-dir build --output-on-failure", depends-on = [
6262
"build",
6363
] }
6464

0 commit comments

Comments
 (0)