Skip to content

Commit

Permalink
Correct CMake for TBB dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 committed Jul 19, 2024
1 parent 4dc8b79 commit 6efc01f
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_DEPENDSS "${CPACK_DEBIAN_PACKAGE_DEPENDSS}" 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 6efc01f

Please sign in to comment.