Taken from https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-libs/hipBLASLt/files/hipBLASLt-7.1.0-rocisa-nanobind.patch?id=77972f6a23d7b2347be2f09f453a1093714d67bf diff --git a/tensilelite/rocisa/CMakeLists.txt b/tensilelite/rocisa/CMakeLists.txt index 3918f18..9c6fcd3 100644 --- a/tensilelite/rocisa/CMakeLists.txt +++ b/tensilelite/rocisa/CMakeLists.txt @@ -17,13 +17,7 @@ target_include_directories(rocisa-cpp ) if(HIPBLASLT_BUNDLE_PYTHON_DEPS) - include(FetchContent) - FetchContent_Declare( - nanobind - GIT_REPOSITORY https://github.com/wjakob/nanobind.git - GIT_TAG 9b3afa9dbdc23641daf26fadef7743e7127ff92f # v2.6.1 - ) - FetchContent_MakeAvailable(nanobind) + find_package(nanobind CONFIG REQUIRED) set(ROCISAINST_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/rocisa/src/instruction/instruction.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/rocisa/src/instruction/common.cpp"