mirror of https://github.com/ecmwf/eccodes.git
ECC-380 Do not link OpenJPEG in Python extension module
This commit is contained in:
parent
a05b174b02
commit
3f84e10869
|
@ -10,10 +10,6 @@ if( HAVE_PYTHON )
|
|||
get_filename_component(JASPER_DIR ${JASPER_INCLUDE_DIR} PATH )
|
||||
endif()
|
||||
|
||||
if( HAVE_LIBOPENJPEG )
|
||||
get_filename_component(OPENJPEG_LIB_DIR ${OPENJPEG_LIBRARY} PATH )
|
||||
endif()
|
||||
|
||||
if( HAVE_AEC )
|
||||
get_filename_component(AEC_DIR ${AEC_INCLUDE_DIR} PATH )
|
||||
endif()
|
||||
|
|
|
@ -36,13 +36,6 @@ if shared_libs == 'OFF':
|
|||
runtime_library_dirs=os.path.join(jasper_dir, 'lib'))
|
||||
add_attribute(libraries='jasper')
|
||||
|
||||
if @HAVE_LIBOPENJPEG@:
|
||||
openjpeg_lib_dir = '@OPENJPEG_LIB_DIR@'
|
||||
if openjpeg_lib_dir:
|
||||
add_attribute(library_dirs=openjpeg_lib_dir,
|
||||
runtime_library_dirs=openjpeg_lib_dir)
|
||||
add_attribute(libraries='openjp2')
|
||||
|
||||
# assumes png is supplied by system paths -- may not be true
|
||||
if @HAVE_LIBPNG@:
|
||||
add_attribute(libraries='png')
|
||||
|
|
Loading…
Reference in New Issue