mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-11 17:00:22 +00:00
update for new cmake
This commit is contained in:
@@ -59,7 +59,7 @@ steps:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install cmake=3.26.4 -y
|
||||
sudo apt-get install cmake -y
|
||||
set -e
|
||||
rm -rf build
|
||||
mkdir -p build && cd build
|
||||
|
||||
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user