Skip to content

Commit

Permalink
fix(lidar_apollo_segmentation_tvm): always run ament_auto_package() i…
Browse files Browse the repository at this point in the history
…n CMakeLists.txt (autowarefoundation#1995)

Signed-off-by: mitsudome-r <[email protected]>

Signed-off-by: mitsudome-r <[email protected]>
  • Loading branch information
mitsudome-r authored Sep 30, 2022
1 parent 6a6532b commit 1445696
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions perception/lidar_apollo_segmentation_tvm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ if(baidu_cnn_FOUND)
ament_auto_package()
else()
message(WARNING "Neural network not found, skipping package.")
ament_auto_package()
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ find_package(autoware_cmake REQUIRED)
autoware_package()

# Check that a neural network was available for lidar_apollo_segmentation_tvm to be built.
if(lidar_apollo_segmentation_tvm_FOUND)
autoware_check_neural_network(baidu_cnn "${${lidar_apollo_segmentation_tvm}_BACKEND}")
if(baidu_cnn_FOUND)
# Set lidar_apollo_segmentation_tvm includes as "SYSTEM" to ignore compiler errors on PCL headers
include_directories(SYSTEM "${lidar_apollo_segmentation_tvm_INCLUDE_DIRS}")

Expand Down Expand Up @@ -48,4 +49,5 @@ if(lidar_apollo_segmentation_tvm_FOUND)
)
else()
message(WARNING "lidar_apollo_segmentation_tvm not found, skipping package.")
ament_auto_package()
endif()

0 comments on commit 1445696

Please sign in to comment.