[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    [CMake] [CTest] Set BuildName through command line
From:       Kim Kryger <kimberly.kryger () gmail ! com>
Date:       2016-08-23 16:21:57
Message-ID: CAMKm35xAr9YCJ0jjBrp7JBvGKUtH3gERyhvaCKXV8jsA4BNzbg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr"><div class="gmail_extra">I&#39;m trying to simply set \
the name of the build to be sent to CDash to something on the command line. I&#39;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?</div><div \
class="gmail_extra"><br></div><div class="gmail_extra">I shouldn&#39;t have to \
reconfigure cmake to change a simple name for the CTest build name.</div><div \
class="gmail_extra"><br></div><div class="gmail_extra">Here are some of my \
attempts:</div><div class="gmail_extra"><font face="monospace, \
monospace">&quot;C:\Program Files (x86)\CMake 3.3\bin\ctest.exe&quot; -D \
BuildName:String=MyBuild -C Debug -D ExperimentalBuild<br></font></div><div \
class="gmail_extra"><font face="monospace, monospace"><br></font></div><div \
class="gmail_extra"><font face="monospace, monospace">&quot;C:\Program Files \
(x86)\CMake 3.3\bin\ctest.exe&quot; -D CTEST_BUILD_NAME:String=MyBuil<wbr>d -C Debug \
-D Experimental<br></font></div><div class="gmail_extra"><font face="monospace, \
monospace"><br></font></div><font face="monospace, monospace">&quot;C:\Program Files \
(x86)\CMake 3.3\bin\ctest.exe&quot; --overwrite BUILDNAME=MyBuild -C Debug -D \
Experimental</font><div><font face="monospace, monospace"><br></font><div \
class="gmail_extra"><font face="monospace, monospace">&quot;C:\Program Files \
(x86)\CMake 3.3\bin\ctest.exe&quot; --overwrite CTEST_BUILD_NAME=MyBuild -C Debug -D \
Experimental</font><br></div><div class="gmail_extra"><br></div><div \
class="gmail_extra">I was hoping -S was a supplement to the already created \
configuration file, but nope, it&#39;s meant to be a complete replacement for the \
default.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I found \
this thread but it&#39;s not the solution I was hoping to use.</div><div \
class="gmail_extra"><a \
href="http://public.kitware.com/pipermail/cmake/2010-June/037706.html" \
target="_blank">http://public.kitware.com/pipe<wbr>rmail/cmake/2010-June/037706.<wbr>html</a><br></div><div \
class="gmail_extra"><br></div><div class="gmail_extra">Is there a command line option \
I&#39;m missing or using incorrectly, or is this seriously not something that is \
supported?</div></div><div class="gmail_extra"><br></div><div \
class="gmail_extra">Thanks,  </div><font color="#888888"><div \
class="gmail_extra">Kim</div><div><br></div></font></div></div>



-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic