Make that: cmake -DBUILDNAME=MyBuildName . && ctest -D Experimental
(forgot the '.' ...) On Thu, Jun 24, 2010 at 3:21 PM, David Cole <david.c...@kitware.com> wrote: > 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.con...@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 >> > >
_______________________________________________ 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