diff --git a/CMakeLists.txt b/CMakeLists.txt index f65b36f16..bbf1c5cff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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} )