Merge "removing static lib for hip target" into amd-master-next
[ROCm/hip commit: e2fce43499]
Этот коммит содержится в:
Коммит
46dd031e2b
2 files changed
+6
-6
No files matched your search
@@ -10,7 +10,7 @@ set(CMAKE_IMPORT_FILE_VERSION 1)
|
|||||||
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
|
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
|
||||||
get_filename_component(_IMPORT_PREFIX "${_DIR}/../../../" REALPATH)
|
get_filename_component(_IMPORT_PREFIX "${_DIR}/../../../" REALPATH)
|
||||||
|
|
||||||
if(HIP_PLATFORM STREQUAL "hcc")
|
if(! HIP_RUNTIME STREQUAL "vdi")
|
||||||
# Import target "hip::hip_hcc_static" for configuration "Release"
|
# Import target "hip::hip_hcc_static" for configuration "Release"
|
||||||
set_property(TARGET hip::hip_hcc_static APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
set_property(TARGET hip::hip_hcc_static APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
||||||
if(HIP_COMPILER STREQUAL "clang")
|
if(HIP_COMPILER STREQUAL "clang")
|
||||||
|
|||||||
@@ -16,10 +16,10 @@ set(CMAKE_IMPORT_FILE_VERSION 1)
|
|||||||
set(_targetsDefined)
|
set(_targetsDefined)
|
||||||
set(_targetsNotDefined)
|
set(_targetsNotDefined)
|
||||||
set(_expectedTargets)
|
set(_expectedTargets)
|
||||||
if(HIP_PLATFORM STREQUAL "hcc")
|
if(HIP_RUNTIME STREQUAL "vdi")
|
||||||
foreach(_expectedTarget hip:hip_hcc_static hip::hip_hcc hip::host hip::device)
|
|
||||||
else()
|
|
||||||
foreach(_expectedTarget hip::hip_hcc hip::host hip::device)
|
foreach(_expectedTarget hip::hip_hcc hip::host hip::device)
|
||||||
|
else()
|
||||||
|
foreach(_expectedTarget hip:hip_hcc_static hip::hip_hcc hip::host hip::device)
|
||||||
endif()
|
endif()
|
||||||
list(APPEND _expectedTargets ${_expectedTarget})
|
list(APPEND _expectedTargets ${_expectedTarget})
|
||||||
if(NOT TARGET ${_expectedTarget})
|
if(NOT TARGET ${_expectedTarget})
|
||||||
@@ -52,7 +52,7 @@ get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
|
|||||||
get_filename_component(_IMPORT_PREFIX "${_DIR}/../../../" REALPATH)
|
get_filename_component(_IMPORT_PREFIX "${_DIR}/../../../" REALPATH)
|
||||||
|
|
||||||
# Create imported target hip::hip_hcc_static
|
# Create imported target hip::hip_hcc_static
|
||||||
if(HIP_PLATFORM STREQUAL "hcc")
|
if( ! HIP_RUNTIME STREQUAL "vdi")
|
||||||
add_library(hip::hip_hcc_static STATIC IMPORTED)
|
add_library(hip::hip_hcc_static STATIC IMPORTED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ find_path(HSA_HEADER hsa/hsa.h
|
|||||||
if (HSA_HEADER-NOTFOUND)
|
if (HSA_HEADER-NOTFOUND)
|
||||||
message (FATAL_ERROR "HSA header not found! ROCM_PATH environment not set")
|
message (FATAL_ERROR "HSA header not found! ROCM_PATH environment not set")
|
||||||
endif()
|
endif()
|
||||||
if(HIP_PLATFORM STREQUAL "hcc")
|
if(!HIP_RUNTIME STREQUAL "vdi")
|
||||||
set_target_properties(hip::hip_hcc_static PROPERTIES
|
set_target_properties(hip::hip_hcc_static PROPERTIES
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${HSA_HEADER}"
|
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${HSA_HEADER}"
|
||||||
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${HSA_HEADER}")
|
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${HSA_HEADER}")
|
||||||
|
|||||||
Reference in new issue
Block a user