aboutsummaryrefslogtreecommitdiff
path: root/tests/ctest-default.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-12-19 12:49:04 +0100
committerAndreas Schneider <asn@cynapses.org>2010-12-19 12:54:52 +0100
commit5cb4c9451f81e212cff135335d0d1b3d5746cb49 (patch)
tree4b18d9ee9fd29669973432373c295de887f82d06 /tests/ctest-default.cmake
parent80408d5357956a8a2b438d102aa0953971e136f1 (diff)
downloadlibssh-5cb4c9451f81e212cff135335d0d1b3d5746cb49.tar.gz
libssh-5cb4c9451f81e212cff135335d0d1b3d5746cb49.tar.xz
libssh-5cb4c9451f81e212cff135335d0d1b3d5746cb49.zip
ctest: Make sure we have a clean source tree for each build.
Diffstat (limited to 'tests/ctest-default.cmake')
-rw-r--r--tests/ctest-default.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/ctest-default.cmake b/tests/ctest-default.cmake
index 0cb13826..b33ed055 100644
--- a/tests/ctest-default.cmake
+++ b/tests/ctest-default.cmake
@@ -1,5 +1,4 @@
-set(CTEST_SOURCE_DIRECTORY "$ENV{HOME}/workspace/tmp/dashboards/libssh/source")
-set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/workspace/tmp/dashboards/libssh/build")
+set(CTEST_DIRECTORY "$ENV{HOME}/workspace/tmp/dashboards/libssh")
set(CTEST_SITE "host.libssh.org")
set(CTEST_BUILD_NAME "linux-gcc-default")
@@ -13,6 +12,9 @@ set(WITH_COVERAGE FALSE)
#######################################################################
+set(CTEST_SOURCE_DIRECTORY "${CTEST_DIRECTORY}/${CTEST_BUILD_NAME}/source")
+set(CTEST_BINARY_DIRECTORY "${CTEST_DIRECTORY}/${CTEST_BUILD_NAME}/build")
+
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
find_program(CTEST_GIT_COMMAND NAMES git)