[CMake] Set --build-config in a ctest script?

David Cole david.cole at kitware.com
Thu Mar 3 15:09:23 EST 2011


In CMake 2.8.2 and later, you can:

  set(CTEST_CONFIGURATION_TYPE "Release") # or Debug

in the ctest -S script.

That will influence both the ctest_build and ctest_test commands.


HTH,
David


On Thu, Mar 3, 2011 at 2:09 PM, Macumber, Daniel
<Daniel.Macumber at nrel.gov>wrote:

> Is it possible to set the build config in a ctest script rather than pass
> it in on the command line?  I haven’t found a list of ctest variables in the
> documentation like there is for cmake.
>
>
>
> Thanks a lot,
>
> Dan
>
> _______________________________________________
> 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/20110303/9f17c9d7/attachment.htm>


More information about the CMake mailing list