Skip to content

Commit

Permalink
Updating compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrhm committed Sep 18, 2024
1 parent bfc4c79 commit 60be043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,14 @@ if(ZED_FOUND AND CUDA_FOUND)

# ZED Wrapper
mrover_add_node(zed perception/zed_wrapper/*.c* perception/zed_wrapper/pch.hpp)
target_compile_options(zed PRIVATE -std=c++20)
target_compile_options(zed PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-std=c++20>)
target_link_libraries(zed parameter_utils lie MANIF::manif ${CUDA_LIBRARIES} loop_profiler cuda_compiler_flags)
ament_target_dependencies(zed rclcpp sensor_msgs ZED CUDA tf2 tf2_ros)

# Learning Library
# TODO(john): Update to use the new API
mrover_add_library(tensorrt tensorrt/*.c* tensorrt)
target_compile_options(tensorrt PRIVATE -Wno-deprecated-declarations -std=c++17)
target_compile_options(tensorrt PRIVATE -Wno-deprecated-declarations $<$<COMPILE_LANGUAGE:CUDA>:-std=c++17>)
target_include_directories(tensorrt PRIVATE ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
target_link_libraries(tensorrt PRIVATE opencv_core opencv_dnn opencv_imgproc lie nvinfer nvonnxparser tbb cuda_compiler_flags)

Expand Down

0 comments on commit 60be043

Please sign in to comment.