Skip to content

Commit 20a9e31

Browse files
authored
SWDEV-531400_SYMLINK remove SYMLINK (#525)
Co-authored-by: Jonathan Luu <jonatluu@amd.com> [ROCm/clr commit: a2dafbe]
1 parent 81c75a7 commit 20a9e31

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

projects/clr/hipamd/hip-config.cmake.in

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,6 @@ function(hip_add_interface_link_flags TARGET)
8282
endif()
8383
endfunction()
8484

85-
# NOTE: If hip-config is invoked from /opt/rocm-ver/hip/lib/cmake/hip/
86-
# then PACKAGE_PREFIX_DIR will resolve to /opt/rocm-ver/hip, which is for backward compatibility
87-
# The following will ensure PACKAGE_PREFIX_DIR will resolves to /opt/rocm-ver
88-
# First find the real path to hip-config file with symlinks resolved
89-
# Real Path : /opt/rocm-ver/lib/cmake/hip/hip-config.cmake
90-
# Then go up 4 levels to get PACKAGE_PREFIX_DIR
91-
# PACKAGE_PREFIX_DIR : /opt/rocm-ver
92-
# TODO:once file reorg backward compatibility is turned off this can be removed.
93-
if(IS_SYMLINK ${CMAKE_CURRENT_LIST_FILE})
94-
get_filename_component(CONFIG_FILE_PATH "${CMAKE_CURRENT_LIST_FILE}" REALPATH)
95-
get_filename_component(PACKAGE_PREFIX_DIR "${CONFIG_FILE_PATH}/../../../../" ABSOLUTE)
96-
endif()
97-
# end of TODO
9885
set(HIP_PACKAGE_PREFIX_DIR ${PACKAGE_PREFIX_DIR})
9986

10087
set_and_check( hip_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@" )

0 commit comments

Comments
 (0)