Skip to content

Commit 0bc5648

Browse files
committed
Add patch command for libopenjpeg and update minimum CMake version
- Introduced a patch command in libopenjpeg.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 <gbae@nvidia.com>
1 parent 8c88612 commit 0bc5648

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if (NOT TARGET deps::libopenjpeg)
1919
deps-libopenjpeg
2020
GIT_REPOSITORY https://github.com/uclouvain/openjpeg.git
2121
GIT_TAG v2.5.3
22+
PATCH_COMMAND ${GIT_EXECUTABLE} apply "${CMAKE_CURRENT_LIST_DIR}/libopenjpeg.patch"
2223
GIT_SHALLOW TRUE
2324
)
2425

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index b04561f4..2392c14d 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -7,7 +7,8 @@
6+
# For this purpose you can define a CMake var: OPENJPEG_NAMESPACE to whatever you like
7+
# e.g.:
8+
# set(OPENJPEG_NAMESPACE "GDCMOPENJPEG")
9+
-cmake_minimum_required(VERSION 3.5)
10+
+# [cuCIM patch] Set minimum CMake version to 3.30.0
11+
+cmake_minimum_required(VERSION 3.30.0)
12+
13+
if(NOT OPENJPEG_NAMESPACE)
14+
set(OPENJPEG_NAMESPACE "OPENJPEG")

0 commit comments

Comments
 (0)