Replace check variable name
MODIFY
cmake/ROCMExportTargetsHeaderOnly.cmake
cmake/ROCMExportTargetsHeaderOnly.cmake
@@ -106,8 +106,8 @@ function(rocm_export_targets_header_only)
if(PARSE_TARGETS)
rocm_write_package_template_function(${CONFIG_TEMPLATE} include "\${${PACKAGE_NAME}_TARGET_FILE}")
foreach(NAME ${PACKAGE_NAME} ${PACKAGE_NAME_UPPER} ${PACKAGE_NAME_LOWER})
- rocm_write_package_template_function_if(${CONFIG_TEMPLATE} set DISABLE_ROCTHRUST_LIBRARIES_SET ${NAME}_LIBRARIES ${PARSE_TARGETS})
- rocm_write_package_template_function_if(${CONFIG_TEMPLATE} set DISABLE_ROCTHRUST_LIBRARY_SET ${NAME}_LIBRARY ${PARSE_TARGETS})
+ rocm_write_package_template_function_if(${CONFIG_TEMPLATE} set PYTORCH_FOUND_HIP ${NAME}_LIBRARIES ${PARSE_TARGETS})
+ rocm_write_package_template_function_if(${CONFIG_TEMPLATE} set PYTORCH_FOUND_HIP ${NAME}_LIBRARY ${PARSE_TARGETS})
endforeach()
endif()

Replace check variable name