Skip to content

Commit

Permalink
Correct dependencies for RHEL / SLES
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 authored and WBobby committed Jul 12, 2024
1 parent 5ce533a commit 4dc8b79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if (ROCRAND_HAVE_ASM_INCBIN)
enable_language(ASM)
list(TRANSFORM SOBOL_PRECOMPUTED_SOURCES APPEND ".S")
set_source_files_properties(${SOBOL_PRECOMPUTED_SOURCES} PROPERTIES
INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/src)
INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/src)
else()
list(TRANSFORM SOBOL_PRECOMPUTED_SOURCES APPEND ".cpp")
endif()
Expand Down Expand Up @@ -132,7 +132,7 @@ if(NOT WIN32 AND ROCRAND_USE_TBB)
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")
rocm_package_add_rpm_dependencies("(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 Expand Up @@ -192,7 +192,7 @@ if (WIN32)
install (TARGETS rocrand DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
if (BUILD_TEST)
add_custom_command(
TARGET rocrand
TARGET rocrand
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
$<TARGET_FILE:rocrand>
Expand All @@ -201,13 +201,13 @@ if (WIN32)
endif()
if (BUILD_BENCHMARK)
add_custom_command(
TARGET rocrand
TARGET rocrand
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
$<TARGET_FILE:rocrand>
${PROJECT_BINARY_DIR}/benchmark/$<TARGET_FILE_NAME:rocrand>
)
endif()
endif()
endif()

# Fortran wrappers for rocRAND
Expand Down

0 comments on commit 4dc8b79

Please sign in to comment.