mirror of https://github.com/ecmwf/eccodes.git
Openjpeg 2.5.1: Try again
This commit is contained in:
parent
24e13c4f8a
commit
66e39ad3e8
|
@ -1,4 +1,4 @@
|
|||
SET(ENABLE_EXTRA_TESTS ON CACHE BOOL "Enable extra tests")
|
||||
SET(ENABLE_ECCODES_THREADS ON CACHE BOOL "Enable POSIX threads")
|
||||
SET(ENABLE_MEMFS ON CACHE BOOL "Enable MEMFS")
|
||||
SET(ENABLE_JPG_LIBOPENJPEG OFF CACHE BOOL "Disable OpenJPEG")
|
||||
# SET(ENABLE_JPG_LIBOPENJPEG OFF CACHE BOOL "Disable OpenJPEG")
|
||||
|
|
|
@ -13,7 +13,11 @@
|
|||
#if HAVE_LIBOPENJPEG
|
||||
|
||||
#include "openjpeg.h"
|
||||
#include "opj_config.h"
|
||||
// The older versions did not have the opj_config.h file
|
||||
// So we use a more recent macro to detect whether it is there
|
||||
#if defined(OPJ_IMG_INFO)
|
||||
#include "opj_config.h"
|
||||
#endif
|
||||
|
||||
static void openjpeg_warning(const char* msg, void* client_data)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue