Skip to content

Commit

Permalink
Fix TBB search in ROS1 builds on u22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Dec 5, 2024
1 parent dca0378 commit 8dc76dd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libs/slam/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ list(APPEND slam_EXTRA_SRCS_NAME
"slam" "slam" "slam-headers")

if(CMAKE_MRPT_HAS_TBB)
set(tbb_dep TBB)
else()
set(tbb_dep "")
set(EXTRA_CONFIG_CMDS
"find_dependency(TBB CONFIG)")
endif()

#---------------------------------------------
Expand All @@ -25,8 +24,6 @@ define_mrpt_lib(
# Dependencies
mrpt-vision
mrpt-maps
# Other imported targets:
${tbb_dep} # find_package() lib name
)

if(BUILD_mrpt-slam)
Expand Down

0 comments on commit 8dc76dd

Please sign in to comment.