[CMake] CTest as a shell
Richard Wackerbarth
rkw at dataplex.net
Fri Nov 6 10:31:16 EST 2009
Thanks.
I didn't catch that variable in the documentation.
It does just what I need.
Richard
On Nov 6, 2009, at 8:05 AM, David Cole wrote:
> 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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091106/83c80c22/attachment.htm>
More information about the CMake
mailing list