Skip to content

Commit

Permalink
Use MLIR python detection environment (#8037)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalint13 authored Jan 7, 2025
1 parent 7631807 commit ab5dc6c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,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)
mlir_detect_pybind11_install()
# 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)
find_package(pybind11 2.10 CONFIG REQUIRED)
include(MLIRDetectPythonEnv)
mlir_configure_python_dev_packages()
else()
message(STATUS "CIRCT Python bindings are disabled.")
# Lookup python either way as some integration tests use python without the
Expand Down

0 comments on commit ab5dc6c

Please sign in to comment.