[CMake] CTest as a shell

David Cole david.cole at kitware.com
Fri Nov 6 09:05:55 EST 2009


On Fri, Nov 6, 2009 at 7:56 AM, Richard Wackerbarth <rkw at dataplex.net>wrote:

> I'm trying to run a number of dashboards ( various projects and
> configurations) from a single script.
>
> - - -
>
> It does what I want but complains that I did not set
> CTEST_SOURCE_DIRECTORY, CTEST_BINARY_DIRECTORY, and CTEST_COMMAND at the top
> scope. (Never mind that, at that level, I am just using ctest as a scripting
> language and have no desire for it to run any tests.
>
> Shouldn't we be able to invoke ctest as a shell?
>
>
Yes, you should... and you can. However, ctest warns in this situation
because it is a common thing for a first time script writer to forget to set
one of the necessary variables.

To avoid the warning, set this variable instead at the global scope of your
script:

SET(CTEST_RUN_CURRENT_SCRIPT 0)


HTH,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091106/237cc801/attachment.htm>


More information about the CMake mailing list