Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct path for ROCMConfig redirect #155

Merged
merged 9 commits into from
Jan 11, 2024
9 changes: 8 additions & 1 deletion share/rocm/cmake/ROCMConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@
# Copyright (C) 2023 Advanced Micro Devices, Inc.
# ######################################################################################################################

find_package(ROCmCMakeBuildTools HINTS "${CMAKE_CURRENT_LIST_DIR}")
get_filename_component(_new_rocmcmakebuildtools_path "${CMAKE_CURRENT_LIST_DIR}" DIRECTORY)
get_filename_component(_new_rocmcmakebuildtools_path "${_new_rocmcmakebuildtools_path}" DIRECTORY)
# two directories up is sufficient for windows search, but linux search requires the share directory
get_filename_component(_new_rocmcmakebuildtools_path_linux "${_new_rocmcmakebuildtools_path}" DIRECTORY)

find_package(ROCmCMakeBuildTools REQUIRED HINTS
"${_new_rocmcmakebuildtools_path}"
"${_new_rocmcmakebuildtools_path_linux}")
cgmb marked this conversation as resolved.
Show resolved Hide resolved
Loading