Merge pull request #6743 from akva2/fix_installation_hip_headers

fix installation paths for generated headers
This commit is contained in:
Bård Skaflestad authored and GitHub committed 2026-01-21 15:22:44 +01:00
commit 3e7575c0c4
1 file changed
+7 -2
+7 -2
View File
@@ -37,7 +37,6 @@ macro (ADD_CUDA_OR_HIP_FILE LIST DIR FILE)
# and include the correct path which is in the build/binary dir
string(REPLACE ".cu" ".hip" HIP_SOURCE_FILE ${FILE})
set (hip_file_path "${PROJECT_BINARY_DIR}/${DIR}/gpuistl_hip/${HIP_SOURCE_FILE}")
file(RELATIVE_PATH relpath ${PROJECT_SOURCE_DIR} ${hip_file_path})
# add a custom command that will hipify
add_custom_command(
@@ -56,7 +55,13 @@ macro (ADD_CUDA_OR_HIP_FILE LIST DIR FILE)
)
# set_source_files_properties(${relpath} PROPERTIES LANGUAGE HIP)
list(APPEND ${LIST} ${relpath})
if("${LIST}" STREQUAL "PUBLIC_HEADER_FILES")
file(RELATIVE_PATH relpath ${PROJECT_BINARY_DIR} ${hip_file_path})
list(APPEND GENERATED_HEADER_FILES ${relpath})
else()
file(RELATIVE_PATH relpath ${PROJECT_SOURCE_DIR} ${hip_file_path})
list(APPEND ${LIST} ${relpath})
endif()
list(APPEND ${LIST}_HIPIFIED ${hip_file_path})
endif()
endmacro()