no more workaround, the -r option of clone works with branch name too

This commit is contained in:
Gael Guennebaud 2009-07-31 17:24:57 +02:00
parent b7035b67b7
commit 0361e8a7aa

View File

@ -133,15 +133,10 @@ endif(NOT EIGEN_MODE)
## mandatory variables (the default should be ok in most cases): ## mandatory variables (the default should be ok in most cases):
SET (CTEST_CVS_COMMAND "hg") SET (CTEST_CVS_COMMAND "hg")
SET (CTEST_CVS_CHECKOUT "${CTEST_CVS_COMMAND} clone http://bitbucket.org/eigen/eigen2 \"${CTEST_SOURCE_DIRECTORY}\"") SET (CTEST_CVS_CHECKOUT "${CTEST_CVS_COMMAND} clone -r 2.0 http://bitbucket.org/eigen/eigen2 \"${CTEST_SOURCE_DIRECTORY}\"")
# which ctest command to use for running the dashboard # which ctest command to use for running the dashboard
if(WIN32 AND NOT UNIX) SET (CTEST_COMMAND "${EIGEN_CMAKE_DIR}ctest -D ${EIGEN_MODE}")
# TODO find a portable way to update to the 2.0 branch
SET (CTEST_COMMAND "${EIGEN_CMAKE_DIR}ctest -D ${EIGEN_MODE}")
else(WIN32 AND NOT UNIX)
SET (CTEST_COMMAND "sh -c \" hg up -R ../src 2.0 && ${EIGEN_CMAKE_DIR}ctest -D ${EIGEN_MODE}\"")
endif(WIN32 AND NOT UNIX)
# what cmake command to use for configuring this dashboard # what cmake command to use for configuring this dashboard
SET (CTEST_CMAKE_COMMAND "${EIGEN_CMAKE_DIR}cmake -DEIGEN_BUILD_TESTS=on ") SET (CTEST_CMAKE_COMMAND "${EIGEN_CMAKE_DIR}cmake -DEIGEN_BUILD_TESTS=on ")