From 8febafbd089a5d98ccc096100b21f49ebb446d14 Mon Sep 17 00:00:00 2001 From: Guillaume Pasero <guillaume.pasero@c-s.fr> Date: Tue, 26 May 2015 17:54:18 +0200 Subject: [PATCH] DOC: warn user about the OpenJPEG/ITK issue --- Modules/ThirdParty/OpenJPEG/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Modules/ThirdParty/OpenJPEG/CMakeLists.txt b/Modules/ThirdParty/OpenJPEG/CMakeLists.txt index 19aa927ab0..65101008cc 100644 --- a/Modules/ThirdParty/OpenJPEG/CMakeLists.txt +++ b/Modules/ThirdParty/OpenJPEG/CMakeLists.txt @@ -16,6 +16,13 @@ endif()") endif() message(STATUS "Found OpenJPEG : ${OPENJPEG_LIBRARIES} (version ${OPENJPEG_MAJOR_VERSION}.${OPENJPEG_MINOR_VERSION}.${OPENJPEG_BUILD_VERSION})") + message(WARNING "There could be a version conflict if ITK also contains an OpenJPEG version. " + "Depending on ITK version and enabled modules, the OpenJPEG headers can be " + "present in ITK include folder. Since the include order between modules is " + "deterministic, the OpenJPEG header from ITK may be included first. To avoid " + "version conflicts, try to use an ITK installed without GDCM nor ITKReview. " + "An alternative fix is to simply hide the header openjpeg.h in the ITK " + "include directory.") otb_module_impl() -- GitLab