Skip to content

Commit

Permalink
[dlpack] fix NDK 27+ build
Browse files Browse the repository at this point in the history
* require CMake 3.22+
  • Loading branch information
luncliff committed Sep 16, 2024
1 parent 1ba1777 commit 1ab5b1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ports/dlpack/fix-cmake.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea113e1..ed9671a 100644
index ea113e1..105244f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
@@ -2,13 +2,13 @@
# Set minimum version of CMake. Since command 'project' use
# VERSION sub-option we need at least 3.0.
# Note: If you use 2.6 or 2.4, God kills a kitten. Seriously.
-cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.22 FATAL_ERROR)

####
# Set variables:
# * PROJECT_NAME
# * PROJECT_VERSION
Expand Down
1 change: 1 addition & 0 deletions ports/dlpack/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "dlpack",
"version": "1.0",
"port-version": 1,
"description": "common in-memory tensor structure",
"homepage": "https://github.com/dmlc/dlpack",
"license": "Apache-2.0",
Expand Down

0 comments on commit 1ab5b1e

Please sign in to comment.