Skip to content

Commit 0b64758

Browse files
mgehre-amdjorickert
authored andcommitted
cmake: Use old CMP0175 policy
Otherwise we get hundreds of warnings during cmake.
1 parent 068259b commit 0b64758

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mlir/cmake/modules/AddMLIRPython.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
# grouping. Source groupings form a DAG.
2424
# SOURCES: List of specific source files relative to ROOT_DIR to include.
2525
# SOURCES_GLOB: List of glob patterns relative to ROOT_DIR to include.
26+
27+
if (POLICY CMP0175)
28+
cmake_policy(SET CMP0175 OLD)
29+
endif()
30+
2631
function(declare_mlir_python_sources name)
2732
cmake_parse_arguments(ARG
2833
""

0 commit comments

Comments
 (0)