Skip to content

Commit a7af971

Browse files
committed
depend on ament_cmake_pytest for tests only (#372)
1 parent 42d7e0f commit a7af971

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lbr_description/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ endif()
77

88
# find dependencies
99
find_package(ament_cmake REQUIRED)
10-
find_package(ament_cmake_pytest REQUIRED)
1110

1211
# install
1312
install(
@@ -18,6 +17,7 @@ install(
1817
ament_environment_hooks("${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.dsv")
1918

2019
if(BUILD_TESTING)
20+
find_package(ament_cmake_pytest REQUIRED)
2121
ament_add_pytest_test(test_urdf ${CMAKE_CURRENT_SOURCE_DIR}/test/test_urdf.py)
2222
endif()
2323

lbr_description/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<license>Apache-2.0</license>
99

1010
<buildtool_depend>ament_cmake</buildtool_depend>
11-
<buildtool_depend>ament_cmake_pytest</buildtool_depend>
1211

1312
<exec_depend>gz_ros2_control</exec_depend>
1413
<exec_depend>joint_state_publisher_gui</exec_depend>
@@ -17,6 +16,7 @@
1716
<exec_depend>tf2_ros</exec_depend>
1817
<exec_depend>xacro</exec_depend>
1918

19+
<test_depend>ament_cmake_pytest</test_depend>
2020
<test_depend>python3-pytest</test_depend>
2121

2222
<export>

0 commit comments

Comments
 (0)