From 83da995d024f04d4a7331a252be167f9052eb9f6 Mon Sep 17 00:00:00 2001 From: Mike Urbach Date: Wed, 8 Jan 2025 12:41:55 -0700 Subject: [PATCH] [Python] Configure dev modules, but with flag set. --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f62f9df51e40..91445e5813d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -513,8 +513,9 @@ 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) - mlir_detect_pybind11_install() + set(MLIR_DISABLE_CONFIGURE_PYTHON_DEV_PACKAGES 1) + include(MLIRDetectPythonEnv) + mlir_configure_python_dev_packages() # Prime the search like mlir_configure_python_dev_modules find_package(Python3 3.8 COMPONENTS Interpreter Development) find_package(Python3 3.8 COMPONENTS Interpreter Development.Module)