update for new cmake

This commit is contained in:
empyreus
2026-04-02 17:55:58 +00:00
parent 6fd8b18e83
commit 61e0540cbc
2 changed files with 2 additions and 7 deletions

View File

@@ -11,12 +11,7 @@ FetchContent_Declare(dlpack
GIT_TAG 5c210da409e7f1e51ddf445134a4376fdbd70d7d
)
FetchContent_GetProperties(dlpack)
if(NOT dlpack_POPULATED)
FetchContent_Populate(dlpack)
# Add dlpack subdirectory but exclude it from installation
add_subdirectory(${dlpack_SOURCE_DIR} ${dlpack_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
FetchContent_MakeAvailable(dlpack)
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS *.cpp)
nanobind_add_module(mscclpp_py ${SOURCES})