diff --git a/tests/include.ctest.sh.in b/tests/include.ctest.sh.in index e476dd07b..876fedb79 100644 --- a/tests/include.ctest.sh.in +++ b/tests/include.ctest.sh.in @@ -12,7 +12,7 @@ data_dir=@PROJECT_BINARY_DIR@/data # use definitions from binary dir to test if installation will be correct # Note: 'definitions' is a symlink so must put final slash to interpret as directory -def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions/" +def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@/" ECCODES_DEFINITION_PATH="${def_dir}" export ECCODES_DEFINITION_PATH @@ -30,7 +30,7 @@ fi test_dir=@PROJECT_BINARY_DIR@/tests/ # use samples from binary dir to test if installation will be correct -samp_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/samples" +samp_dir="@CMAKE_BINARY_DIR@/@ECCODES_SAMPLES_SUFF@" ECCODES_SAMPLES_PATH=${samp_dir} export ECCODES_SAMPLES_PATH