Skip to content

Commit

Permalink
Merge pull request #526 from ROCm/hotfix-tbb-dependency-cmake
Browse files Browse the repository at this point in the history
HOTFIX: Correct CMake for TBB dependency
  • Loading branch information
mamaydeo authored Jul 23, 2024
2 parents 4dc8b79 + d6fae3e commit e7154bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ 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("(tbb-devel or tbb)")
rocm_package_add_deb_dependencies(DEPENDS "libtbb-dev")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}" PARENT_SCOPE)
rocm_package_add_rpm_dependencies(DEPENDS "(tbb-devel or tbb)")
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>
Expand Down

0 comments on commit e7154bd

Please sign in to comment.