From 8116dbf4453f9eaa3a51eaf1035355a06a165bfd Mon Sep 17 00:00:00 2001 From: nscipione Date: Fri, 28 Jun 2024 16:36:04 +0100 Subject: [PATCH] Fix cmake if statement Update if-checks to cmake best practice --- test/unittest/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unittest/CMakeLists.txt b/test/unittest/CMakeLists.txt index 989c3c2ab..030be228c 100644 --- a/test/unittest/CMakeLists.txt +++ b/test/unittest/CMakeLists.txt @@ -103,8 +103,8 @@ if(is_dpcpp) ) endif() -if( (DEFINED TUNING_TARGET AND (${TUNING_TARGET} STREQUAL "INTEL_GPU")) OR - (DEFINED DPCPP_SYCL_ARCH AND (${DPCPP_SYCL_ARCH} MATCHES "_pvc|_agm")) ) +if( ("${TUNING_TARGET}" STREQUAL "INTEL_GPU") OR + ("${DPCPP_SYCL_ARCH}" MATCHES "_pvc|_agm") ) message(WARNING "disabling trsv, tbsv and tpsv tests for Intel ARC and Intel GPU Max GPUs") set(TESTS_TO_SKIP ${PORTBLAS_UNITTEST}/blas2/blas2_trsv_test.cpp