File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,6 @@ function(hip_add_interface_link_flags TARGET)
8282 endif ()
8383endfunction ()
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
9885set (HIP_PACKAGE_PREFIX_DIR ${PACKAGE_PREFIX_DIR} )
9986
10087set_and_check ( hip_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@" )
You can’t perform that action at this time.
0 commit comments