From 1079679afa3115f2018ca6b0b4f27ea00732b799 Mon Sep 17 00:00:00 2001 From: Payam Date: Wed, 19 Feb 2020 03:48:33 -0500 Subject: [PATCH] Removed Static lib for hip target Change-Id: Iea7fc3f26f5d99df622e69aab3898f7bc931fc58 --- hipamd/packaging/hip-targets-release.cmake | 2 +- hipamd/packaging/hip-targets.cmake | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hipamd/packaging/hip-targets-release.cmake b/hipamd/packaging/hip-targets-release.cmake index 147aad8445..36e9c6e9e5 100644 --- a/hipamd/packaging/hip-targets-release.cmake +++ b/hipamd/packaging/hip-targets-release.cmake @@ -10,7 +10,7 @@ set(CMAKE_IMPORT_FILE_VERSION 1) get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}" REALPATH) get_filename_component(_IMPORT_PREFIX "${_DIR}/../../../" REALPATH) -if(! HIP_RUNTIME STREQUAL "vdi") +if(NOT HIP_RUNTIME STREQUAL "vdi") # Import target "hip::hip_hcc_static" for configuration "Release" set_property(TARGET hip::hip_hcc_static APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) if(HIP_COMPILER STREQUAL "clang") diff --git a/hipamd/packaging/hip-targets.cmake b/hipamd/packaging/hip-targets.cmake index 2d9dd2c438..4d44579277 100644 --- a/hipamd/packaging/hip-targets.cmake +++ b/hipamd/packaging/hip-targets.cmake @@ -52,7 +52,7 @@ get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}" REALPATH) get_filename_component(_IMPORT_PREFIX "${_DIR}/../../../" REALPATH) # Create imported target hip::hip_hcc_static -if( ! HIP_RUNTIME STREQUAL "vdi") +if( NOT HIP_RUNTIME STREQUAL "vdi") add_library(hip::hip_hcc_static STATIC IMPORTED) endif() @@ -68,11 +68,11 @@ find_path(HSA_HEADER hsa/hsa.h if (HSA_HEADER-NOTFOUND) message (FATAL_ERROR "HSA header not found! ROCM_PATH environment not set") endif() -if(!HIP_RUNTIME STREQUAL "vdi") +if(NOT HIP_RUNTIME STREQUAL "vdi") set_target_properties(hip::hip_hcc_static PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${HSA_HEADER}" INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${HSA_HEADER}") -endif() +endif() # Create imported target hip::hip_hcc add_library(hip::hip_hcc SHARED IMPORTED)