mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 05:07:54 +08:00
f2e1c52db8
* [gdcm,jbig2dec] minor fixes * [libmupdf] remove wrong vs define * [gdcm] internal libs do not export symbols and fail to build when non-static
17 lines
482 B
Diff
17 lines
482 B
Diff
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)
|