GRIB-804: cmake does not enable JPEG if only openjpeg is present and not jasper

This commit is contained in:
Shahram Najm 2015-07-24 09:53:28 +01:00
parent e67b37001a
commit 76d074ea8e
1 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,6 @@ project( eccodes C )
set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../ecbuild/cmake")
include( ecbuild_system )
ecbuild_requires_macro_version( 1.7 )
@ -116,7 +115,7 @@ if( ENABLE_JPG )
set( HAVE_LIBJASPER 1 )
endif()
if( OpenJPEG_FOUND )
if( OPENJPEG_FOUND )
set( HAVE_JPEG 1 )
set( HAVE_LIBOPENJPEG 1 )
endif()