Skip to content

Commit

Permalink
Fixed missing arrus-linux dependency of tbb.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjarosik committed Sep 7, 2021
1 parent dd6f97e commit 2a582ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ set(Protobuf_IMPORT_DIRS ${CMAKE_CURRENT_SOURCE_DIR})
find_package(fmt REQUIRED)
find_package(Microsoft.GSL REQUIRED)
find_package(Eigen3 REQUIRED)

# OS specific dependencies.
if("${ARRUS_BUILD_PLATFORM}" STREQUAL "windows")
set(ARRUS_OS_DEPS "")
else("${ARRUS_BUILD_PLATFORM}" STREQUAL "linux")
find_package(TBB REQUIRED)
set(ARRUS_OS_DEPS tbb)
endif()
################################################################################
# Sub-projects
################################################################################
Expand Down
4 changes: 3 additions & 1 deletion arrus/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ target_link_libraries(${TARGET_NAME}
protobuf::libprotobuf
fmt::fmt
Eigen3::Eigen3
Microsoft.GSL::GSL)
Microsoft.GSL::GSL
${ARRUS_OS_DEPS}
)
################################################################################
# Target compile options
################################################################################
Expand Down

0 comments on commit 2a582ed

Please sign in to comment.