From a013e37c8f915cc167f7444a224ab37b89d81efb Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Thu, 25 Jul 2019 17:33:49 -0400 Subject: [PATCH] Messages indicating fatal errors should be fatal Change-Id: Ib071d3f6ed216c817daa637fc784680ef9d123f8 [ROCm/rocminfo commit: 9f5349806a958eaf8d9ae65323eb47e7000abe13] --- projects/rocminfo/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/rocminfo/CMakeLists.txt b/projects/rocminfo/CMakeLists.txt index b5fa9dd0de..8b90b7fe6f 100755 --- a/projects/rocminfo/CMakeLists.txt +++ b/projects/rocminfo/CMakeLists.txt @@ -50,7 +50,7 @@ set(ROCR_LIB_DIR ${ROCM_DIR}/lib) # Determine ROCR Header files are present # if(NOT EXISTS ${ROCR_INC_DIR}/hsa/hsa.h) - message("ERROR: ${ROCR_INC_DIR}/hsa/hsa.h does not exist. Check value of ROCM_DIR define") + message(FATAL_ERROR, "ERROR: ${ROCR_INC_DIR}/hsa/hsa.h does not exist. Check value of ROCM_DIR define") return() endif() @@ -66,12 +66,12 @@ endif() # if (${IS64BIT} EQUAL 0) if(NOT EXISTS ${ROCR_LIB_DIR}/libhsa-runtime.so) - message("ERROR: ${ROCR_LIB_DIR}/libhsa-runtime.so doesn't exist. Check value of ROCM_DIR define") + message(FATAL_ERROR, "ERROR: ${ROCR_LIB_DIR}/libhsa-runtime.so doesn't exist. Check value of ROCM_DIR define") return() endif() else() if(NOT EXISTS ${ROCR_LIB_DIR}/libhsa-runtime64.so) - message("ERROR: Define ROCR_LIB_DIR pointing to ROCR libraries is not set") + message(FATAL_ERROR, "ERROR: Define ROCR_LIB_DIR pointing to ROCR libraries is not set") return() endif() endif()