diff --git a/examples/C/include.ctest.sh.in b/examples/C/include.ctest.sh.in index f2321396e..899d30d78 100644 --- a/examples/C/include.ctest.sh.in +++ b/examples/C/include.ctest.sh.in @@ -11,7 +11,7 @@ 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" +def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@" ECCODES_DEFINITION_PATH="${def_dir}" export ECCODES_DEFINITION_PATH @@ -26,6 +26,6 @@ if test "x$ECCODES_TEST_WITH_VALGRIND" != "x"; then fi # 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 diff --git a/examples/F90/include.ctest.sh.in b/examples/F90/include.ctest.sh.in index e634d6876..ec5ab685b 100644 --- a/examples/F90/include.ctest.sh.in +++ b/examples/F90/include.ctest.sh.in @@ -11,7 +11,7 @@ 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" +def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@" ECCODES_DEFINITION_PATH="${def_dir}" export ECCODES_DEFINITION_PATH @@ -26,6 +26,6 @@ if test "x$ECCODES_TEST_WITH_VALGRIND" != "x"; then fi # 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 diff --git a/examples/python/include.ctest.sh.in b/examples/python/include.ctest.sh.in index 925bf0df1..8bce78b5f 100644 --- a/examples/python/include.ctest.sh.in +++ b/examples/python/include.ctest.sh.in @@ -10,7 +10,7 @@ fi 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" +def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@" ECCODES_DEFINITION_PATH="${def_dir}" export ECCODES_DEFINITION_PATH @@ -19,7 +19,7 @@ examples_dir=@CMAKE_CURRENT_BINARY_DIR@/ examples_src=@CMAKE_CURRENT_SOURCE_DIR@/ # 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