[CMake] How to add CPack errors to CDash

NoRulez norulez at me.com
Fri Jun 3 04:36:20 EDT 2011


Is it possible to use a command such as ctest_*? because in my main CTestScript.cmake file it isn't possible to call add_test.

Am 01.06.2011 um 23:11 schrieb Clinton Stimpson <clinton at elemtech.com>:

> 
> On Wednesday, June 01, 2011 03:01:12 pm NoRulez wrote:
>> Hi,
>> 
>> is it possible to also report CPack errors to CDash, for example if NSIS
>> fails on Linux/Windows?
>> 
>> If so, how could this be done?
>> 
> 
> You can do this:
> ADD_TEST(package ${CMAKE_CPACK_COMMAND} -V 
>               -C \${CTEST_CONFIGURATION_TYPE}
>              --config "${CMAKE_BINARY_DIR}/CPackConfig.cmake")
> 
> -- 
> Clinton Stimpson
> Elemental Technologies, Inc
> Computational Simulation Software, LLC
> www.csimsoft.com
> _______________________________________________
> 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


More information about the CMake mailing list