File tree 2 files changed +12
-9
lines changed
2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -773,6 +773,18 @@ endif()
773
773
# MLIR/LLVM Dependency
774
774
#-------------------------------------------------------------------------------
775
775
776
+ # Both the IREE and MLIR Python bindings require nanobind. We initialize it here
777
+ # at the top level so that everything uses ours consistently.
778
+ if (IREE_BUILD_PYTHON_BINDINGS OR IREE_BUILD_COMPILER)
779
+ include (FetchContent)
780
+ FetchContent_Declare(
781
+ nanobind
782
+ GIT_REPOSITORY https://github.com/wjakob/nanobind.git
783
+ GIT_TAG 0f9ce749b257fdfe701edb3cf6f7027ba029434a # v2.4.0
784
+ )
785
+ FetchContent_MakeAvailable(nanobind)
786
+ endif ()
787
+
776
788
# Both the IREE and MLIR Python bindings require pybind11. We initialize it here
777
789
# at the top level so that everything uses ours consistently.
778
790
if (IREE_BUILD_PYTHON_BINDINGS AND IREE_BUILD_COMPILER)
Original file line number Diff line number Diff line change 4
4
# See https://llvm.org/LICENSE.txt for license information.
5
5
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
7
- # nanobind
8
- include (FetchContent)
9
- FetchContent_Declare(
10
- nanobind
11
- GIT_REPOSITORY https://github.com/wjakob/nanobind.git
12
- GIT_TAG 0f9ce749b257fdfe701edb3cf6f7027ba029434a # v2.4.0
13
- )
14
- FetchContent_MakeAvailable(nanobind)
15
-
16
7
set (_EXTRA_INSTALL_TOOL_TARGETS)
17
8
set (_TRACY_ENABLED OFF )
18
9
You can’t perform that action at this time.
0 commit comments