Skip to content

Commit 7a939c9

Browse files
author
Diptorup Deb
authored
Suppress errant CMake log. (#610)
1 parent 6d005b2 commit 7a939c9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dpctl-capi/cmake/modules/FindIntelSycl.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ include(FindPackageHandleStandardArgs)
3838
# IntelSycl_ROOT to that path.
3939
if(DPCTL_DPCPP_HOME_DIR)
4040
set(IntelSycl_ROOT ${DPCTL_DPCPP_HOME_DIR})
41-
message(STATUS "Not using standard oneAPI installation, but IntelSycl at " ${IntelSycl_ROOT})
41+
if(NOT DPCTL_DPCPP_FROM_ONEAPI)
42+
message(STATUS
43+
"Not using standard oneAPI installation, but IntelSycl at "
44+
${IntelSycl_ROOT}
45+
)
46+
endif()
4247
# If DPC++ installation was not specified, check for ONEAPI_ROOT
4348
elseif(DEFINED ENV{ONEAPI_ROOT})
4449
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")

0 commit comments

Comments
 (0)