From 60215fb6f9296a8ecf95b4f97371bd5939ace6e6 Mon Sep 17 00:00:00 2001 From: Mike Urbach Date: Wed, 8 Jan 2025 12:41:55 -0700 Subject: [PATCH] [Python] Disable upstream Python dev config; include the library. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f62f9df51e40..811536b42c2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -513,7 +513,8 @@ option(CIRCT_BINDINGS_PYTHON_ENABLED "Enables CIRCT Python bindings." OFF) if(CIRCT_BINDINGS_PYTHON_ENABLED) message(STATUS "CIRCT Python bindings are enabled.") - set(MLIR_DISABLE_CONFIGURE_PYTHON_DEV_PACKAGES 0) + set(MLIR_DISABLE_CONFIGURE_PYTHON_DEV_PACKAGES 1) + include(MLIRDetectPythonEnv) mlir_detect_pybind11_install() # Prime the search like mlir_configure_python_dev_modules find_package(Python3 3.8 COMPONENTS Interpreter Development)