Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions projects/rocthrust/cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,10 @@ if(BUILD_BENCHMARK)
if(CMAKE_CXX_COMPILER_LAUNCHER)
set(EXTRA_CMAKE_ARGS "${EXTRA_CMAKE_ARGS} -DCMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER}")
endif()

# FetchContent runs in-process, so rocthrust's BUILD_BENCHMARK=ON leaks into
# rocrand and causes its benchmarks to build. Suppress that here.
set(BUILD_BENCHMARK OFF)

FetchContent_Declare(
rocrand
Expand All @@ -454,6 +458,7 @@ if(BUILD_BENCHMARK)
LOG_INSTALL TRUE
)
FetchContent_MakeAvailable(rocrand)
set(BUILD_BENCHMARK ON)
if(NOT TARGET roc::rocrand)
add_library(roc::rocrand ALIAS rocrand)
endif()
Expand Down
Loading