[CMake] Ways of setting CTEST_BUILD_NAME
David Cole
david.cole at kitware.com
Thu Jun 24 15:21:43 EDT 2010
cmake -DBUILDNAME=MyBuildName . && make && make test
test does not depend on all so that it can just run quickly... so you need
the middle make in the above command line if you actually want to build your
stuff first.
But why do you even need to set BUILDNAME for a "make test" -- it only
really applies when you're submitting a dashboard.
You would do something like:
cmake -DBUILDNAME=MyBuildName && ctest -D Experimental
...to run an experimental dashboard including configure, build and test
stages...
Does that make sense?
HTH,
David
On Thu, Jun 24, 2010 at 3:07 PM, Convey, Christian J CIV NUWC NWPT <
christian.convey at navy.mil> wrote:
> Suppose I want do just use "ctest" in a dead-simple manner: add a few
> lines to my CMakeLists.txt files, then run "cmake . && make test".
>
> In this scheme, what's the easiest way I can set CTEST_BUILD_NAME? Simply
> setting that variable in my CMakeLists.txt file doesn't *seem* to be
> effective.
>
> Thanks,
> Christian
>
> _______________________________________________
> 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/20100624/7e2d0ce3/attachment.htm>
More information about the CMake
mailing list