[CMake] [CTest] Set BuildName through command line
Kim Kryger
kimberly.kryger at gmail.com
Tue Aug 23 12:21:57 EDT 2016
I'm trying to simply set the name of the build to be sent to CDash to
something on the command line. I've tried a few different avenues, but no
options seem to affect the build name, other than reconfiguring CMake. I am
using Visual Studio, which of course is multi-configuration, which means
that a single CTest file is used when building, but when I build Debug and
Release tests, the CDash output treats them as the same build, and it
considers the results to be similar, when I want them to be separated by
build name. Can I use generator expressions somehow?
I shouldn't have to reconfigure cmake to change a simple name for the CTest
build name.
Here are some of my attempts:
"C:\Program Files (x86)\CMake 3.3\bin\ctest.exe" -D
BuildName:String=MyBuild -C Debug -D ExperimentalBuild
"C:\Program Files (x86)\CMake 3.3\bin\ctest.exe" -D
CTEST_BUILD_NAME:String=MyBuild -C Debug -D Experimental
"C:\Program Files (x86)\CMake 3.3\bin\ctest.exe" --overwrite
BUILDNAME=MyBuild -C Debug -D Experimental
"C:\Program Files (x86)\CMake 3.3\bin\ctest.exe" --overwrite
CTEST_BUILD_NAME=MyBuild -C Debug -D Experimental
I was hoping -S was a supplement to the already created configuration file,
but nope, it's meant to be a complete replacement for the default.
I found this thread but it's not the solution I was hoping to use.
http://public.kitware.com/pipermail/cmake/2010-June/037706.html
Is there a command line option I'm missing or using incorrectly, or is this
seriously not something that is supported?
Thanks,
Kim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160823/af3d6dbc/attachment.html>
More information about the CMake
mailing list