mirror of https://github.com/ecmwf/eccodes.git
ECC-296 Use runtime_library_dirs
This commit is contained in:
parent
de82e9c001
commit
dc087a955e
|
@ -19,9 +19,9 @@ attdict = dict(sources=['@CMAKE_CURRENT_SOURCE_DIR@/swig_wrap_numpy.c',
|
||||||
'@CMAKE_CURRENT_SOURCE_DIR@/../src',
|
'@CMAKE_CURRENT_SOURCE_DIR@/../src',
|
||||||
numpy_include],
|
numpy_include],
|
||||||
library_dirs=['@CMAKE_BINARY_DIR@/lib'],
|
library_dirs=['@CMAKE_BINARY_DIR@/lib'],
|
||||||
|
runtime_library_dirs=['@CMAKE_INSTALL_PREFIX@/@INSTALL_LIB_DIR@'],
|
||||||
libraries=['eccodes'],
|
libraries=['eccodes'],
|
||||||
extra_objects=[],
|
extra_objects=[])
|
||||||
extra_link_args=['-Wl,-rpath,@CMAKE_INSTALL_PREFIX@/@INSTALL_LIB_DIR@'])
|
|
||||||
|
|
||||||
shared_libs='@BUILD_SHARED_LIBS@'
|
shared_libs='@BUILD_SHARED_LIBS@'
|
||||||
if shared_libs == 'OFF':
|
if shared_libs == 'OFF':
|
||||||
|
@ -33,14 +33,14 @@ if shared_libs == 'OFF':
|
||||||
jasper_dir = '@JASPER_DIR@'
|
jasper_dir = '@JASPER_DIR@'
|
||||||
if jasper_dir and jasper_dir != 'system':
|
if jasper_dir and jasper_dir != 'system':
|
||||||
add_attribute(library_dirs=os.path.join(jasper_dir, 'lib'),
|
add_attribute(library_dirs=os.path.join(jasper_dir, 'lib'),
|
||||||
extra_link_args='-Wl,-rpath,' + os.path.join(jasper_dir, 'lib'))
|
runtime_library_dirs=os.path.join(jasper_dir, 'lib'))
|
||||||
add_attribute(libraries='jasper')
|
add_attribute(libraries='jasper')
|
||||||
|
|
||||||
if @HAVE_LIBOPENJPEG@:
|
if @HAVE_LIBOPENJPEG@:
|
||||||
openjpeg_lib_dir = '@OPENJPEG_LIB_DIR@'
|
openjpeg_lib_dir = '@OPENJPEG_LIB_DIR@'
|
||||||
if openjpeg_lib_dir:
|
if openjpeg_lib_dir:
|
||||||
add_attribute(library_dirs=openjpeg_lib_dir,
|
add_attribute(library_dirs=openjpeg_lib_dir,
|
||||||
extra_link_args='-Wl,-rpath,' + openjpeg_lib_dir)
|
runtime_library_dirs=openjpeg_lib_dir)
|
||||||
add_attribute(libraries='openjp2')
|
add_attribute(libraries='openjp2')
|
||||||
|
|
||||||
# assumes png is supplied by system paths -- may not be true
|
# assumes png is supplied by system paths -- may not be true
|
||||||
|
@ -51,7 +51,7 @@ if shared_libs == 'OFF':
|
||||||
aec_dir = '@AEC_DIR@'
|
aec_dir = '@AEC_DIR@'
|
||||||
if aec_dir and aec_dir != 'system':
|
if aec_dir and aec_dir != 'system':
|
||||||
add_attribute(library_dirs=os.path.join(aec_dir, 'lib'),
|
add_attribute(library_dirs=os.path.join(aec_dir, 'lib'),
|
||||||
extra_link_args='-Wl,-rpath,' + os.path.join(aec_dir, 'lib'))
|
runtime_library_dirs=os.path.join(aec_dir, 'lib'))
|
||||||
add_attribute(libraries='aec')
|
add_attribute(libraries='aec')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue