mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-14 21:41:06 -05:00
HIP: Ensure lib64 directories are included in hip-lang dependency search
When the target ABI is unspecified, find_package should include lib64 directories in hip-lang dependency search, regardless of whether hip-lang is packaged under lib or lib64. Fixes: #26194
This commit is contained in:
@@ -223,7 +223,7 @@ if(CMAKE_HIP_PLATFORM STREQUAL "amd")
|
||||
endif()
|
||||
unset(_CMAKE_HIP_COMPILER_ROCM_LIB_DIRS)
|
||||
endif()
|
||||
if(CMAKE_HIP_COMPILER_ROCM_LIB MATCHES "/lib64$" AND NOT DEFINED CMAKE_SIZEOF_VOID_P)
|
||||
if(NOT DEFINED CMAKE_SIZEOF_VOID_P)
|
||||
# We have not yet determined the target ABI but we need 'find_package' to
|
||||
# search lib64 directories to find hip-lang CMake package dependencies.
|
||||
# This will be replaced by ABI detection later.
|
||||
|
||||
Reference in New Issue
Block a user