diff --git a/libshortfin/CMakeLists.txt b/libshortfin/CMakeLists.txt index dc9d6419a..087548cf5 100644 --- a/libshortfin/CMakeLists.txt +++ b/libshortfin/CMakeLists.txt @@ -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) @@ -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) diff --git a/libshortfin/bindings/python/CMakeLists.txt b/libshortfin/bindings/python/CMakeLists.txt index 7ea707def..1fd512c75 100644 --- a/libshortfin/bindings/python/CMakeLists.txt +++ b/libshortfin/bindings/python/CMakeLists.txt @@ -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