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:
Florian Rathgeber 2017-02-03 12:08:35 +00:00
parent 804e9ac571
commit eece1f4211
1 changed files with 3 additions and 3 deletions

View File

@ -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} )