Skip to content

Commit

Permalink
[Python] Configure dev modules, but with flag set.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeurbach committed Jan 8, 2025
1 parent 42e4c20 commit 83da995
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 83da995

Please sign in to comment.