diff --git a/examples/C/include.ctest.sh.in b/examples/C/include.ctest.sh.in index 9aa68383c..2b33c6a05 100644 --- a/examples/C/include.ctest.sh.in +++ b/examples/C/include.ctest.sh.in @@ -14,7 +14,7 @@ def_dir="${proj_dir}/definitions" ECCODES_DEFINITION_PATH="${def_dir}" export ECCODES_DEFINITION_PATH -tools_dir=@CMAKE_BINARY_DIR@/bin/ +tools_dir=@PROJECT_BINARY_DIR@/bin/ examples_dir=@CMAKE_CURRENT_BINARY_DIR@/ samp_dir="${proj_dir}/samples" diff --git a/examples/F90/include.ctest.sh.in b/examples/F90/include.ctest.sh.in index d218654ce..c78b9f345 100644 --- a/examples/F90/include.ctest.sh.in +++ b/examples/F90/include.ctest.sh.in @@ -14,7 +14,7 @@ def_dir="${proj_dir}/definitions" ECCODES_DEFINITION_PATH="${def_dir}" export ECCODES_DEFINITION_PATH -tools_dir=@CMAKE_BINARY_DIR@/bin/ +tools_dir=@PROJECT_BINARY_DIR@/bin/ examples_dir=@CMAKE_CURRENT_BINARY_DIR@/ samp_dir="${proj_dir}/samples" diff --git a/examples/python/include.ctest.sh.in b/examples/python/include.ctest.sh.in index d7cb03990..d23731206 100644 --- a/examples/python/include.ctest.sh.in +++ b/examples/python/include.ctest.sh.in @@ -14,7 +14,7 @@ def_dir="${proj_dir}/definitions" ECCODES_DEFINITION_PATH="${def_dir}" export ECCODES_DEFINITION_PATH -tools_dir=@CMAKE_BINARY_DIR@/bin/ +tools_dir=@PROJECT_BINARY_DIR@/bin/ examples_dir=@CMAKE_CURRENT_BINARY_DIR@/ samp_dir="${proj_dir}/samples" diff --git a/tests/include.ctest.sh.in b/tests/include.ctest.sh.in index 7ce4e4a8f..e3af5ea93 100644 --- a/tests/include.ctest.sh.in +++ b/tests/include.ctest.sh.in @@ -14,9 +14,9 @@ def_dir=@PROJECT_SOURCE_DIR@/definitions ECCODES_DEFINITION_PATH="${def_dir}" export ECCODES_DEFINITION_PATH -tools_dir=@CMAKE_BINARY_DIR@/bin/ -tigge_dir=@CMAKE_BINARY_DIR@/bin/ -test_dir=@CMAKE_BINARY_DIR@/tests +tools_dir=@PROJECT_BINARY_DIR@/bin/ +tigge_dir=@PROJECT_BINARY_DIR@/bin/ +test_dir=@PROJECT_BINARY_DIR@/tests samp_dir="${proj_dir}/samples" ECCODES_SAMPLES_PATH=${samp_dir}