[CMake] Ways of setting CTEST_BUILD_NAME

Tyler Roscoe tyler at cryptio.net
Thu Jun 24 15:14:58 EDT 2010


On Thu, Jun 24, 2010 at 03:07:50PM -0400, Convey, Christian J CIV NUWC NWPT 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.

Based on my build system, it looks like you can just set BUILDNAME
before you do include(CTest). You may need an enable_testing() call as
well.

tyler


More information about the CMake mailing list