Skip to content

Commit a4dfb23

Browse files
committed
Remove superfluous call in cmake
1 parent 817d2db commit a4dfb23

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

tcb_span/CMakeLists.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ target_include_directories(tcb_span INTERFACE
1111
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
1212
target_compile_features(tcb_span INTERFACE cxx_std_17)
1313

14-
install(DIRECTORY include/ DESTINATION include/)
14+
if(BUILD_TESTING)
15+
add_subdirectory(test)
16+
endif()
17+
18+
install(
19+
DIRECTORY include/
20+
DESTINATION include
21+
)
1522

1623
install(
1724
TARGETS tcb_span
@@ -22,11 +29,5 @@ install(
2229
INCLUDES DESTINATION include
2330
)
2431

25-
ament_export_include_directories(include)
2632
ament_export_targets(export_tcb_span)
27-
28-
if(BUILD_TESTING)
29-
add_subdirectory(test)
30-
endif()
31-
3233
ament_package()

tl_expected/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ target_include_directories(tl_expected INTERFACE
1313
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
1414
target_compile_features(tl_expected INTERFACE cxx_std_17)
1515

16-
install(DIRECTORY include/ DESTINATION include/)
16+
install(
17+
DIRECTORY include/
18+
DESTINATION include
19+
)
1720

1821
install(
1922
TARGETS tl_expected
@@ -24,7 +27,5 @@ install(
2427
INCLUDES DESTINATION include
2528
)
2629

27-
ament_export_include_directories(include)
2830
ament_export_targets(export_tl_expected)
29-
3031
ament_package()

0 commit comments

Comments
 (0)