From bc3a1253a29257e7c38050f59e869ea409069bea Mon Sep 17 00:00:00 2001 From: Matthias Gehre Date: Tue, 1 Apr 2025 09:44:26 +0200 Subject: [PATCH] cmake: Use old CMP0175 policy Otherwise we get hundreds of warnings during cmake. --- mlir/cmake/modules/AddMLIRPython.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mlir/cmake/modules/AddMLIRPython.cmake b/mlir/cmake/modules/AddMLIRPython.cmake index 7b91f43e2d57f..242c403aca140 100644 --- a/mlir/cmake/modules/AddMLIRPython.cmake +++ b/mlir/cmake/modules/AddMLIRPython.cmake @@ -23,6 +23,11 @@ # grouping. Source groupings form a DAG. # SOURCES: List of specific source files relative to ROOT_DIR to include. # SOURCES_GLOB: List of glob patterns relative to ROOT_DIR to include. + +if (POLICY CMP0175) + cmake_policy(SET CMP0175 OLD) +endif() + function(declare_mlir_python_sources name) cmake_parse_arguments(ARG ""