diff --git a/recipes/dlpack/all/conandata.yml b/recipes/dlpack/all/conandata.yml index 1ee4d67252887..f541482d88868 100644 --- a/recipes/dlpack/all/conandata.yml +++ b/recipes/dlpack/all/conandata.yml @@ -1,4 +1,7 @@ sources: + "1.0": + url: "https://github.com/dmlc/dlpack/archive/v1.0.tar.gz" + sha256: "f8cfdcb634ff3cf0e3d9a3426e019e1c6469780a3b0020c9bc4ecc09cf9abcb1" "0.8": url: "https://github.com/dmlc/dlpack/archive/v0.8.tar.gz" sha256: "cf965c26a5430ba4cc53d61963f288edddcd77443aa4c85ce722aaf1e2f29513" diff --git a/recipes/dlpack/all/test_package/test_package.cpp b/recipes/dlpack/all/test_package/test_package.cpp index 6304024f2e652..9c286d918cb1b 100644 --- a/recipes/dlpack/all/test_package/test_package.cpp +++ b/recipes/dlpack/all/test_package/test_package.cpp @@ -4,7 +4,11 @@ int main() { -#if DLPACK_VERSION < 60 +#ifdef DLPACK_MAJOR_VERSION // Since 1.0 + int major = DLPACK_MAJOR_VERSION; + int minor = DLPACK_MINOR_VERSION; + int patch = 0; +#elif DLPACK_VERSION < 60 int major = (DLPACK_VERSION >> 6) & 7; int minor = (DLPACK_VERSION >> 3) & 7; int patch = DLPACK_VERSION & 7; diff --git a/recipes/dlpack/config.yml b/recipes/dlpack/config.yml index a1b8905afe4b1..001dc29f3eaea 100644 --- a/recipes/dlpack/config.yml +++ b/recipes/dlpack/config.yml @@ -1,4 +1,6 @@ versions: + "1.0": + folder: "all" "0.8": folder: "all" "0.6":