Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaraccident committed Sep 3, 2024
1 parent 90c05e0 commit a3f42b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 1 addition & 7 deletions libshortfin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ if(SHORTFIN_BUNDLE_DEPS)
GIT_TAG e69e5f977d458f2650bb346dadf2ad30c5320281 # 10.2.1 (sync with spdlog)
)

FetchContent_Declare(
nanobind
GIT_REPOSITORY https://github.com/wjakob/nanobind.git
GIT_TAG 9641bb7151f04120013b812789b3ebdfa7e7324f # 2.1.0
)

## spdlog
# We build fmt from source instead, because we also use fmt.
set(SPDLOG_FMT_EXTERNAL ON)
Expand All @@ -106,7 +100,7 @@ if(SHORTFIN_BUNDLE_DEPS)
GIT_TAG 3634f2ded19e0cf38208c8b86cea9e1d7c8e397d # v0.25.0
)

FetchContent_MakeAvailable(fmt nanobind spdlog xtl xtensor)
FetchContent_MakeAvailable(fmt spdlog xtl xtensor)
else()
find_package(spdlog)
find_package(xtensor)
Expand Down
8 changes: 7 additions & 1 deletion libshortfin/bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
# build. - _shortfin_tracing.lib: Native library with tracing enabled (TODO). -
# Others.

find_package(nanobind CONFIG REQUIRED)
# nanobind
FetchContent_Declare(
nanobind
GIT_REPOSITORY https://github.com/wjakob/nanobind.git
GIT_TAG 9641bb7151f04120013b812789b3ebdfa7e7324f # 2.1.0
)
FetchContent_MakeAvailable(nanobind)

nanobind_add_module(shortfin_python_extension NB_STATIC LTO
array_binding.cc
Expand Down

0 comments on commit a3f42b8

Please sign in to comment.