From a47f79915b728f992de1040af5081050a9c03ce5 Mon Sep 17 00:00:00 2001 From: Yutao Xu Date: Mon, 11 Nov 2024 16:40:32 +0800 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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)