[mlir] Refactor finding python
authorMarius Brehler <marius.brehler@iml.fraunhofer.de>
Tue, 10 Nov 2020 17:14:37 +0000 (18:14 +0100)
committerMarius Brehler <marius.brehler@iml.fraunhofer.de>
Tue, 10 Nov 2020 20:21:40 +0000 (21:21 +0100)
commit07f1047f41d6440055ac52e9d3a98d4329fd3592
treedb6410ddc730a7fd1f448a77fcc38d178e42f6b9
parent21f831134c90671bd720533c1f46b88b6979300f
[mlir] Refactor finding python

This drops the use of deprecated CMake modules to find python.

Differential Revision: https://reviews.llvm.org/D91197
mlir/CMakeLists.txt
mlir/cmake/modules/AddMLIRPythonExtension.cmake