Skip to content

Commit 91e5152

Browse files
committed
Collapse BUILD_TESTING clauses
Signed-off-by: Michel Hidalgo <[email protected]>
1 parent 38748ff commit 91e5152

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

rosidl_adapter/CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ find_package(ament_cmake_python REQUIRED)
88
ament_python_install_package(${PROJECT_NAME})
99

1010
if(BUILD_TESTING)
11+
find_package(ament_cmake_pytest REQUIRED)
1112
find_package(ament_lint_auto REQUIRED)
1213
ament_lint_auto_find_test_dependencies()
14+
ament_add_pytest_test(pytest test)
1315
endif()
1416

1517
ament_package(
@@ -25,8 +27,3 @@ install(PROGRAMS
2527
scripts/msg2idl.py
2628
scripts/srv2idl.py
2729
DESTINATION lib/${PROJECT_NAME})
28-
29-
if(BUILD_TESTING)
30-
find_package(ament_cmake_pytest REQUIRED)
31-
ament_add_pytest_test(pytest test)
32-
endif()

0 commit comments

Comments
 (0)