diff --git a/cmake/therock_subproject.cmake b/cmake/therock_subproject.cmake index 1e33f664611..10ab0e5fb61 100644 --- a/cmake/therock_subproject.cmake +++ b/cmake/therock_subproject.cmake @@ -1601,6 +1601,8 @@ function(_therock_cmake_subproject_setup_toolchain list(APPEND _compiler_toolchain_addl_depends "${_hip_stamp_dir}/stage.stamp") string(APPEND _toolchain_contents "string(APPEND CMAKE_CXX_FLAGS_INIT \" --hip-path=@_hip_dist_dir@\")\n") string(APPEND _toolchain_contents "string(APPEND CMAKE_CXX_FLAGS_INIT \" --hip-device-lib-path=@_amd_llvm_device_lib_path@\")\n") + string(APPEND _toolchain_contents "set(CMAKE_HIP_COMPILER \"\${CMAKE_CXX_COMPILER}\")\n") + string(APPEND _toolchain_contents "set(CMAKE_HIP_FLAGS_INIT \"\${CMAKE_CXX_FLAGS_INIT}\")\n") if(THEROCK_VERBOSE) message(STATUS "HIP_DIR = ${_hip_dist_dir}") endif()