Skip to content

Commit 8f575cf

Browse files
committed
[ROS] Do not let ament apend to the uninstall target
1 parent 246a976 commit 8f575cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/ROS/CMakeModules/Findmc_rtc_3rd_party_ros.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ if(NOT TARGET mc_rtc_3rd_party::ROS)
2020
if(DEFINED ENV{ROS_VERSION} AND "$ENV{ROS_VERSION}" EQUAL "2")
2121
cmake_minimum_required(VERSION 3.22)
2222
list(APPEND CMAKE_PREFIX_PATH $ENV{AMENT_PREFIX_PATH})
23+
set(AMENT_CMAKE_UNINSTALL_TARGET
24+
OFF
25+
CACHE BOOL "" FORCE
26+
)
2327
find_package(rclcpp QUIET)
2428
if(NOT TARGET rclcpp::rclcpp)
2529
set(ROSCPP_FOUND False)

0 commit comments

Comments
 (0)