From d12d0ebc578601de138765ee4b1ddd2dcbc79edf Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Mon, 13 Jun 2022 15:33:27 +0530 Subject: [PATCH] SWDEV-327030 - Fix incorrect checks to find components in CMake (#2680) Change-Id: I11529018f2b5d878ca2b728ef7084163ccad317f --- hip-lang-config.cmake.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hip-lang-config.cmake.in b/hip-lang-config.cmake.in index 1a72643a1f..dbc8e5348d 100644 --- a/hip-lang-config.cmake.in +++ b/hip-lang-config.cmake.in @@ -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