diff --git a/CMakeLists.txt b/CMakeLists.txt index d67ead44e..9e969442e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,9 @@ cmake_minimum_required(VERSION 3.13 FATAL_ERROR) set(PROJECT_NAME "torch-xpu-ops") set(PROJECT_VERSION "2.3.0") +# Avoid SYCL compiler error +string(APPEND CMAKE_CXX_FLAGS " -Wno-error=comment") + cmake_policy(SET CMP0048 NEW) project(${PROJECT_NAME} VERSION "${PROJECT_VERSION}" LANGUAGES C CXX)