Skip to content

Commit

Permalink
Add package dependencies on TBB if used
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 authored and WBobby committed Jul 12, 2024
1 parent a64ba89 commit 5ce533a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ if(NOT WIN32 AND ROCRAND_USE_TBB)
message(WARNING "TBB is not found. Building without parallel STL support")
else()
target_link_libraries(rocrand PRIVATE TBB::tbb)
rocm_package_add_deb_dependencies("libtbb-dev")
set(CPACK_DEB_PACKAGE_REQUIRES "${CPACK_DEB_PACKAGE_REQUIRES}" PARENT_SCOPE)
rocm_package_add_rpm_dependencies("libtbb-devel")
set(CPACK_RPM_PACKAGE_REQUIRES "${CPACK_RPM_PACKAGE_REQUIRES}" PARENT_SCOPE)

# Older libstdc++ headers require TBB to be installed to be able to #include <execution>
target_compile_definitions(rocrand PRIVATE ROCRAND_PARALLEL_STL)
Expand Down

0 comments on commit 5ce533a

Please sign in to comment.