SWDEV-327030 - Fix incorrect checks to find components in CMake (#2680)
Change-Id: I11529018f2b5d878ca2b728ef7084163ccad317f
Este cometimento está contido em:
cometido por
GitHub
ascendente
f356d2c33d
cometimento
d12d0ebc57
@@ -94,7 +94,7 @@ find_path(HSA_HEADER hsa/hsa.h
|
||||
/opt/rocm/include
|
||||
)
|
||||
|
||||
if (HSA_HEADER-NOTFOUND)
|
||||
if (NOT HSA_HEADER)
|
||||
message (FATAL_ERROR "HSA header not found! ROCM_PATH environment not set")
|
||||
endif()
|
||||
|
||||
@@ -136,7 +136,7 @@ set_property(TARGET hip-lang::device APPEND PROPERTY
|
||||
)
|
||||
|
||||
# Add support for __fp16 and _Float16, explicitly link with compiler-rt
|
||||
if(CLANGRT_BUILTINS-NOTFOUND)
|
||||
if(NOT CLANGRT_BUILTINS)
|
||||
message(FATAL_ERROR "clangrt builtins lib not found")
|
||||
else()
|
||||
set_property(TARGET hip-lang::device APPEND PROPERTY
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador