]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/gdcm/use-openjpeg-config.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / gdcm / use-openjpeg-config.patch
diff --git a/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/gdcm/use-openjpeg-config.patch b/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/gdcm/use-openjpeg-config.patch
new file mode 100644 (file)
index 0000000..ff64bb1
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f82bfd2..a062170 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -375,7 +375,10 @@ else()
+ endif()
+ if(GDCM_USE_SYSTEM_OPENJPEG)
+-  find_package(OpenJPEG 2.0.0 REQUIRED)
++  find_package(OpenJPEG REQUIRED)
++  if(OPENJPEG_MAJOR_VERSION VERSION_LESS 2)
++    message( FATAL_ERROR "You need at least OpenJPEG 2")
++  endif()
+   set(GDCM_OPENJPEG_LIBRARIES ${OPENJPEG_LIBRARIES})
+ else()
+   set(GDCM_OPENJPEG_LIBRARIES gdcmopenjp2)