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)