Skip to content

Commit 905267d

Browse files
committed
Add patch command for libtiff and update minimum CMake version
- Introduced a patch command in libtiff.cmake to apply custom modifications. - Updated the minimum required CMake version to 3.30.0 in the CMakeLists.txt file. Signed-off-by: Gigon Bae <[email protected]>
1 parent 19f679a commit 905267d

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

cpp/plugins/cucim.kit.cuslide/cmake/deps/libtiff.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if (NOT TARGET deps::libtiff)
2626
GIT_REPOSITORY https://gitlab.com/libtiff/libtiff.git
2727
GIT_TAG v4.5.0
2828
GIT_SHALLOW TRUE
29+
PATCH_COMMAND ${GIT_EXECUTABLE} apply "${CMAKE_CURRENT_LIST_DIR}/libtiff.patch"
2930
EXCLUDE_FROM_ALL
3031
)
3132

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index af5b6bfe..7dcdaefd 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -24,10 +24,12 @@
6+
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
7+
# OF THIS SOFTWARE.
8+
9+
-cmake_minimum_required(VERSION 3.9.0)
10+
+# [cuCIM patch] Set minimum CMake version to 3.30.0
11+
+cmake_minimum_required(VERSION 3.30.0)
12+
13+
-# Default policy is from 3.9.0
14+
-cmake_policy(VERSION 3.9.0)
15+
+# [cuCIM patch] Set default policy to 3.30.0
16+
+# Default policy is from 3.30.0
17+
+cmake_policy(VERSION 3.30.0)
18+
19+
# Find CMake modules in cmake/
20+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
21+
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
22+
index 6cc3d2e4..d26fece9 100644
23+
--- a/doc/CMakeLists.txt
24+
+++ b/doc/CMakeLists.txt
25+
@@ -24,7 +24,8 @@
26+
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
27+
# OF THIS SOFTWARE.
28+
29+
-cmake_minimum_required(VERSION 3.2.0)
30+
+# [cuCIM patch] Set minimum CMake version to 3.30.0
31+
+cmake_minimum_required(VERSION 3.30.0)
32+
33+
include(Sphinx)

0 commit comments

Comments
 (0)