Testing: fix the definition file parsing (find does not work on symlink)

This commit is contained in:
Shahram Najm 2016-08-19 15:58:06 +01:00
parent 267b6e9074
commit df2af75d72
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ proj_dir=@PROJECT_SOURCE_DIR@
data_dir=@PROJECT_BINARY_DIR@/data
# use definitions from binary dir to test if installation will be correct
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
# Note: 'definitions' is a symlink so must put final slash to interpret as directory
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions/"
ECCODES_DEFINITION_PATH="${def_dir}"
export ECCODES_DEFINITION_PATH