Skip to content

Commit 5ce533a

Browse files
lawruble13WBobby
authored andcommitted
Add package dependencies on TBB if used
1 parent a64ba89 commit 5ce533a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ if(NOT WIN32 AND ROCRAND_USE_TBB)
130130
message(WARNING "TBB is not found. Building without parallel STL support")
131131
else()
132132
target_link_libraries(rocrand PRIVATE TBB::tbb)
133+
rocm_package_add_deb_dependencies("libtbb-dev")
134+
set(CPACK_DEB_PACKAGE_REQUIRES "${CPACK_DEB_PACKAGE_REQUIRES}" PARENT_SCOPE)
135+
rocm_package_add_rpm_dependencies("libtbb-devel")
136+
set(CPACK_RPM_PACKAGE_REQUIRES "${CPACK_RPM_PACKAGE_REQUIRES}" PARENT_SCOPE)
133137

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

0 commit comments

Comments
 (0)