diff --git a/CMakeLists.txt b/CMakeLists.txt index 467104956..a0ba1fd99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ set(PROJECT_NAME "torch-xpu-ops") set(PROJECT_VERSION "2.3.0") # Avoid SYCL compiler error if(NOT WIN32) - string(APPEND CMAKE_CXX_FLAGS " -Wno-error=comment") + string(APPEND CMAKE_CXX_FLAGS " -Wno-error") endif() cmake_policy(SET CMP0048 NEW)