Re: [CMake] Get ctest -S script to pull from git branch other than 'master'?

2016-06-08 Thread Xavier Besseron
Hi Ross, Here is how I do it in my case: ... # Initial checkout if no source directory if(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}") message("Initial checkout...") set(CTEST_CHECKOUT_COMMAND "git clone --branch ${GIT_BRANCH} ${REPOSITORY} ${SOURCE_DIR_NAME}") endif() # Initialize testing

[CMake] Get ctest -S script to pull from git branch other than 'master'?

2016-06-07 Thread Bartlett, Roscoe A
Hello, Is there a built-in way to get a ctest -S script to checkout and pull from a git branch other than 'master'? I can't seem to find a way to so this and there is no mention of branches at all in the official documentation: