diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index b97c095f..a89b5cb9 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -120,6 +120,7 @@ if(HIP_COMPILER STREQUAL "nvcc") set(CUDA_HOST_COMPILER ${CMAKE_CXX_COMPILER}) else() target_link_libraries(rocrand PRIVATE hip::device) + target_link_libraries(rocrand PUBLIC hip::host) endif() if(NOT WIN32)