From 42d81c3b54c02dd5f3bf551f5395cdfb4d3f6695 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 29 Sep 2021 17:12:42 -0500 Subject: [PATCH] Suppress errant CMake log. --- dpctl-capi/cmake/modules/FindIntelSycl.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dpctl-capi/cmake/modules/FindIntelSycl.cmake b/dpctl-capi/cmake/modules/FindIntelSycl.cmake index 36c7515e5b..dfc093de44 100644 --- a/dpctl-capi/cmake/modules/FindIntelSycl.cmake +++ b/dpctl-capi/cmake/modules/FindIntelSycl.cmake @@ -38,7 +38,12 @@ include(FindPackageHandleStandardArgs) # IntelSycl_ROOT to that path. if(DPCTL_DPCPP_HOME_DIR) set(IntelSycl_ROOT ${DPCTL_DPCPP_HOME_DIR}) - message(STATUS "Not using standard oneAPI installation, but IntelSycl at " ${IntelSycl_ROOT}) + if(NOT DPCTL_DPCPP_FROM_ONEAPI) + message(STATUS + "Not using standard oneAPI installation, but IntelSycl at " + ${IntelSycl_ROOT} + ) + endif() # If DPC++ installation was not specified, check for ONEAPI_ROOT elseif(DEFINED ENV{ONEAPI_ROOT}) if(CMAKE_SYSTEM_NAME STREQUAL "Windows")