mirror of https://github.com/ecmwf/eccodes.git
ECC-106 Use INSTALL_DATA_DIR in default definition and samples paths
INSTALL_DATA_DIR is now used to initialise the default * ECCODES_DEFINITION_SUFF * ECCODES_SAMPLES_SUFF * ECCODES_IFS_SAMPLES_SUFF
This commit is contained in:
parent
804e9ac571
commit
eece1f4211
|
@ -239,13 +239,13 @@ else()
|
|||
endif()
|
||||
|
||||
if( NOT DEFINED ECCODES_DEFINITION_SUFF )
|
||||
set( ECCODES_DEFINITION_SUFF share/eccodes/definitions )
|
||||
set( ECCODES_DEFINITION_SUFF ${INSTALL_DATA_DIR}/definitions )
|
||||
endif()
|
||||
if( NOT DEFINED ECCODES_SAMPLES_SUFF )
|
||||
set( ECCODES_SAMPLES_SUFF share/eccodes/samples )
|
||||
set( ECCODES_SAMPLES_SUFF ${INSTALL_DATA_DIR}/samples )
|
||||
endif()
|
||||
if( NOT DEFINED ECCODES_IFS_SAMPLES_SUFF )
|
||||
set( ECCODES_IFS_SAMPLES_SUFF share/eccodes/ifs_samples )
|
||||
set( ECCODES_IFS_SAMPLES_SUFF ${INSTALL_DATA_DIR}/ifs_samples )
|
||||
endif()
|
||||
|
||||
set( ECCODES_DEFINITION_PATH ${the_default_data_prefix}/${ECCODES_DEFINITION_SUFF} )
|
||||
|
|
Loading…
Reference in New Issue