message: fno-gpu-rdc requires compile-time --amdgpu-target= options
diff: @@ -60,14 +60,14 @@ add_library(roc::rocsparse ALIAS rocsparse)
  # Target compile options
  if(NOT HIP_PLATFORM STREQUAL "nvcc")
  target_compile_options(rocsparse PRIVATE -fno-gpu-rdc)
  + foreach(target ${AMDGPU_TARGETS})
  + target_compile_options(rocsparse PRIVATE --amdgpu-target=${target})
  + endforeach()
  endif()
  # Target link libraries
  if(NOT HIP_PLATFORM STREQUAL "nvcc")
  target_link_libraries(rocsparse PRIVATE hip::device)
  - foreach(target ${AMDGPU_TARGETS})
  - target_link_libraries(rocsparse PRIVATE --amdgpu-target=${target})
  - endforeach()
  endif()
  # Target include directories
  