From 20a9e311a9dd6a5c4ac79773a45e14de59aa5dc1 Mon Sep 17 00:00:00 2001 From: "Luu, Jonathan" Date: Thu, 26 Jun 2025 15:53:39 -0400 Subject: [PATCH] SWDEV-531400_SYMLINK remove SYMLINK (#525) Co-authored-by: Jonathan Luu [ROCm/clr commit: a2dafbeacf6940c8229411fa69baf37d4f4f179e] --- projects/clr/hipamd/hip-config.cmake.in | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/projects/clr/hipamd/hip-config.cmake.in b/projects/clr/hipamd/hip-config.cmake.in index d033c09ac8..ba151e2973 100755 --- a/projects/clr/hipamd/hip-config.cmake.in +++ b/projects/clr/hipamd/hip-config.cmake.in @@ -82,19 +82,6 @@ function(hip_add_interface_link_flags TARGET) endif() endfunction() -# NOTE: If hip-config is invoked from /opt/rocm-ver/hip/lib/cmake/hip/ -# then PACKAGE_PREFIX_DIR will resolve to /opt/rocm-ver/hip, which is for backward compatibility -# The following will ensure PACKAGE_PREFIX_DIR will resolves to /opt/rocm-ver -# First find the real path to hip-config file with symlinks resolved -# Real Path : /opt/rocm-ver/lib/cmake/hip/hip-config.cmake -# Then go up 4 levels to get PACKAGE_PREFIX_DIR -# PACKAGE_PREFIX_DIR : /opt/rocm-ver -# TODO:once file reorg backward compatibility is turned off this can be removed. -if(IS_SYMLINK ${CMAKE_CURRENT_LIST_FILE}) - get_filename_component(CONFIG_FILE_PATH "${CMAKE_CURRENT_LIST_FILE}" REALPATH) - get_filename_component(PACKAGE_PREFIX_DIR "${CONFIG_FILE_PATH}/../../../../" ABSOLUTE) -endif() -# end of TODO set(HIP_PACKAGE_PREFIX_DIR ${PACKAGE_PREFIX_DIR}) set_and_check( hip_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@" )