Skip to content

Commit

Permalink
chore: fixed the order of the cuda check in the cmakelist
Browse files Browse the repository at this point in the history
Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>
  • Loading branch information
knzo25 authored and technolojin committed Dec 27, 2024
1 parent 7905835 commit 83871b0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ find_package(eigen3_cmake_module REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(PCL REQUIRED)

if(NOT ${CUDA_FOUND})
message(WARNING "cuda was not found, so the autoware_probabilistic_occupancy_grid_map package will not be built.")
return()
endif()

include_directories(
include
SYSTEM
Expand All @@ -17,11 +22,6 @@ include_directories(
${grid_map_ros_INCLUDE_DIRS}
)

if(NOT ${CUDA_FOUND})
message(WARNING "cuda was not found, so the autoware_probabilistic_occupancy_grid_map package will not be built.")
return()
endif()

# cSpell: ignore expt
list(APPEND CUDA_NVCC_FLAGS --expt-relaxed-constexpr -diag-suppress 20012 --compiler-options -fPIC)
set(CUDA_SEPARABLE_COMPILATION ON)
Expand Down

0 comments on commit 83871b0

Please sign in to comment.