How to set CTEST_BUILD_NAME

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to set CTEST_BUILD_NAME

Donald MacQueen [|]
I want to do something like set(CTEST_BUILD_NAME
{CMAKE_SYSTEM_NAME}_someLocalVariable)

I tried putting this ^^ in CTestConfig.cmake with no luck.

I searched the docs and the archives from 2014 to the present and
nothing jumped out at me.

2) Is there a list of what can be set/used in CTestConfig.cmake?

Thanks.

--
Donald [|]
A bad day in [] is better than a good day in {}.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

--

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:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: How to set CTEST_BUILD_NAME

Craig Scott-3


On Mon, Dec 17, 2018 at 6:41 AM Donald MacQueen [|] <[hidden email]> wrote:
I want to do something like set(CTEST_BUILD_NAME
{CMAKE_SYSTEM_NAME}_someLocalVariable)

I tried putting this ^^ in CTestConfig.cmake with no luck.

I searched the docs and the archives from 2014 to the present and
nothing jumped out at me.

2) Is there a list of what can be set/used in CTestConfig.cmake?

The variables are not all collected together conveniently, but the Dashboard Client section of the ctest command does list the supported variables associated with each command. It would seem like setting CTEST_BUILD_NAME should work based on those docs, so perhaps if you could point us as a minimal complete example which demonstrates your problem, that might give more clues as to what's happening for you.


--
Craig Scott
Melbourne, Australia


--

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:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: How to set CTEST_BUILD_NAME

Xavier Besseron
Hi Donald,

For my project, I do it this way.
In my CMakeLists.txt, I first set the variable BUILDNAME in cache before calling `include(CTest)`.

# define BUILDNAME, used to submit jobs to CDash
set(BUILDNAME "Whatever you want" CACHE STRING "" FORCE)

# This must be called after SITE and BUILDNAME variables are set
include(CTest)

I hope this will work for you.

Best regards,

Xavier

On Sun, Dec 16, 2018 at 9:22 PM Craig Scott <[hidden email]> wrote:


On Mon, Dec 17, 2018 at 6:41 AM Donald MacQueen [|] <[hidden email]> wrote:
I want to do something like set(CTEST_BUILD_NAME
{CMAKE_SYSTEM_NAME}_someLocalVariable)

I tried putting this ^^ in CTestConfig.cmake with no luck.

I searched the docs and the archives from 2014 to the present and
nothing jumped out at me.

2) Is there a list of what can be set/used in CTestConfig.cmake?

The variables are not all collected together conveniently, but the Dashboard Client section of the ctest command does list the supported variables associated with each command. It would seem like setting CTEST_BUILD_NAME should work based on those docs, so perhaps if you could point us as a minimal complete example which demonstrates your problem, that might give more clues as to what's happening for you.


--
Craig Scott
Melbourne, Australia

--

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:
https://cmake.org/mailman/listinfo/cmake

-----------------------------------------------------------------------------------

This e-mail can not be trusted due to SPF/DKIM validation failed.

-----------------------------------------------------------------------------------



--
Dr Xavier BESSERON
Research Scientist
FSTC, University of Luxembourg
Campus Belval, Office MNO E04 0415-040
Phone: +352 46 66 44 5418

--

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:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: How to set CTEST_BUILD_NAME

Donald MacQueen [|]

Hi Xavier,

That worked like a charm!

Thanks very much.

Thanks too to Craig for the link. I had not seen that before.

On 12/16/2018 6:15 PM, Xavier Besseron wrote:
Hi Donald,

For my project, I do it this way.
In my CMakeLists.txt, I first set the variable BUILDNAME in cache before calling `include(CTest)`.

        
# define BUILDNAME, used to submit jobs to CDash
set(BUILDNAME "Whatever you want" CACHE STRING "" FORCE)

# This must be called after SITE and BUILDNAME variables are set
include(CTest)

          
I hope this will work for you.
Best regards,

Xavier

On Sun, Dec 16, 2018 at 9:22 PM Craig Scott <[hidden email]> wrote:


On Mon, Dec 17, 2018 at 6:41 AM Donald MacQueen [|] <[hidden email]> wrote:
I want to do something like set(CTEST_BUILD_NAME
{CMAKE_SYSTEM_NAME}_someLocalVariable)

I tried putting this ^^ in CTestConfig.cmake with no luck.

I searched the docs and the archives from 2014 to the present and
nothing jumped out at me.

2) Is there a list of what can be set/used in CTestConfig.cmake?

The variables are not all collected together conveniently, but the Dashboard Client section of the ctest command does list the supported variables associated with each command. It would seem like setting CTEST_BUILD_NAME should work based on those docs, so perhaps if you could point us as a minimal complete example which demonstrates your problem, that might give more clues as to what's happening for you.


--
Craig Scott
Melbourne, Australia


-----------------------------------------------------------------------------------



--
Dr Xavier BESSERON
Research Scientist
FSTC, University of Luxembourg
Campus Belval, Office MNO E04 0415-040
Phone: +352 46 66 44 5418
-- 
Donald [|]
A bad day in [] is better than a good day in {}.

Virus-free. www.avast.com

--

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:
https://cmake.org/mailman/listinfo/cmake