On Mon, Dec 27, 2010 at 8:39 AM, girish hilage <[email protected]>wrote:
> Hi, > > I am a newbie to cmake and cdash. > I am trying to submit my customized report to CDASH using > ctest_submit(FILES <path to report file>) but getting following errors. > > - if I give it in CTestConfig.cmake and give "cmake ." then I am getting > below error : > > CMake Error at CTestConfig.cmake:8 (ctest_submit): > Unknown CMake command "ctest_submit". > Call Stack (most recent call first): > /usr/share/cmake-2.6/Modules/CTest.cmake:50 (INCLUDE) > CMakeLists.txt:117 (INCLUDE) > > - if I give it in CMakeLists.txt and give "cmake ." then I am getting below > error : > > CMake Error at CMakeLists.txt:121 (ctest_submit): > Unknown CMake command "ctest_submit". > > So want to ask : > 1. Am I using ctest_submit() properly for the purpose of submitting the > customized report or is there any other way to do this? > 2. In which file should I give ctest_submit() (CTestConfig.cmake or > CMakeLists.txt)? > Neither. Calls to ctest_submit belong in "ctest -S" scripts that drive dashboard builds and submissions. CMake itself does not implement any of the "ctest_*" commands, so you can only call them from ctest scripts. HTH, David > > Regards, > Girish > > > _______________________________________________ > 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 >
_______________________________________________ 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
