diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/grib-api/enable_only_jasper.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/grib-api/enable_only_jasper.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/grib-api/enable_only_jasper.patch b/var/spack/repos/builtin/packages/grib-api/enable_only_jasper.patch new file mode 100644 index 0000000000..06e9790f59 --- /dev/null +++ b/var/spack/repos/builtin/packages/grib-api/enable_only_jasper.patch @@ -0,0 +1,34 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -106,18 +106,7 @@ set( HAVE_LIBOPENJPEG 0 ) + + if( ENABLE_JPG ) + +- # Note: This is a deprecated feature but we need it to find Jasper at ECMWF. +- # ecbuild_add_extra_search_paths modifies CMAKE_PREFIX_PATH +- # which can affect future package discovery if not undone by the caller. +- # The current CMAKE_PREFIX_PATH is backed up as _CMAKE_PREFIX_PATH +- # +- set(CMAKE_WARN_DEPRECATED OFF) # Suppress deprecation message +- ecbuild_add_extra_search_paths( jasper ) + find_package( Jasper ) +- set(CMAKE_PREFIX_PATH ${_CMAKE_PREFIX_PATH}) # Restore CMAKE_PREFIX_PATH +- set(CMAKE_WARN_DEPRECATED ON) # Remove suppression +- +- find_package( OpenJPEG ) + + if( JASPER_FOUND ) + list( APPEND GRIB_API_TPLS Jasper ) +@@ -125,12 +114,6 @@ if( ENABLE_JPG ) + set( HAVE_LIBJASPER 1 ) + endif() + +- if( OPENJPEG_FOUND ) +- list( APPEND GRIB_API_TPLS OpenJPEG ) +- set( HAVE_JPEG 1 ) +- set( HAVE_LIBOPENJPEG 1 ) +- endif() +- + endif() + + |