Sync hip-targets*.cmake in package with install changes (#1831)

Fixes SWDEV-204247
이 커밋은 다음에 포함됨:
Jatin Chaudhary 작성하고 GitHub가 2020-02-04 08:59:28 +05:30를 커밋함
1 부모 27fbfd9d66
커밋 2ec7c2ca33
2 파일이 변경됨
+4 -2

검색과 일치하는 파일 없음

-2
파일 보기
@@ -20,7 +20,6 @@ set_target_properties(hip::hip_hcc_static PROPERTIES
else()
set_target_properties(hip::hip_hcc_static PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE "hc_am"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libhip_hcc_static.a"
)
endif()
@@ -37,7 +36,6 @@ set_target_properties(hip::hip_hcc PROPERTIES
)
else()
set_target_properties(hip::hip_hcc PROPERTIES
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE "hcc::hccrt;hcc::hc_am"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libhip_hcc.so"
IMPORTED_SONAME_RELEASE "libhip_hcc.so"
)
+4
파일 보기
@@ -26,6 +26,9 @@ foreach(_expectedTarget hip::hip_hcc_static hip::hip_hcc hip::host hip::device)
endif()
endforeach()
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
unset(_targetsDefined)
unset(_targetsNotDefined)
unset(_expectedTargets)
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)
return()
@@ -47,6 +50,7 @@ endif()
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
get_filename_component(_IMPORT_PREFIX "${_DIR}/../../../" REALPATH)
# Create imported target hip::hip_hcc_static
add_library(hip::hip_hcc_static STATIC IMPORTED)