[CMake] How to add CPack errors to CDash

Clinton Stimpson clinton at elemtech.com
Wed Jun 1 17:11:35 EDT 2011


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


More information about the CMake mailing list