Mercurial > hg > orthanc-wsi
diff Resources/CMake/OpenJpegConfiguration.cmake @ 13:e944d00a8a9e
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Oct 2016 10:01:10 +0200 |
parents | 2d7676b93a0f |
children | d101055fc20b |
line wrap: on
line diff
--- a/Resources/CMake/OpenJpegConfiguration.cmake Thu Oct 27 09:54:28 2016 +0200 +++ b/Resources/CMake/OpenJpegConfiguration.cmake Thu Oct 27 10:01:10 2016 +0200 @@ -124,6 +124,7 @@ CHECK_LIBRARY_EXISTS(openjpeg opj_image_create "" HAVE_OPENJPEG_LIB) if (HAVE_OPENJPEG_LIB) + set(OPENJPEG_LIB openjpeg) else() # Search for alternative name "libopenjp2.so" that is notably used by Debian CHECK_LIBRARY_EXISTS(openjp2 opj_image_create "" HAVE_OPENJP2_LIB) @@ -138,6 +139,7 @@ # Detection of the version of OpenJpeg set(CMAKE_REQUIRED_INCLUDES ${OPENJPEG_INCLUDE_DIR}) set(CMAKE_REQUIRED_LIBRARIES ${OPENJPEG_LIB}) + CHECK_SYMBOL_EXISTS(opj_destroy_decompress openjpeg.h HAVE_OPENJPEG_1) if (HAVE_OPENJPEG_1) message("Your system has OpenJPEG version 1")