On Mon, Dec 27, 2010 at 8:39 AM, girish hilage <span dir="ltr">&lt;<a href="mailto:girish_hilage@yahoo.com">girish_hilage@yahoo.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div>Hi,<br><br>I am a newbie to cmake and cdash.</div>
<div>I am trying to submit my customized report to CDASH using ctest_submit(FILES &lt;path to report file&gt;) but getting following errors.<br><br>- if I give it in CTestConfig.cmake and give &quot;cmake .&quot; then I am getting below error :<br>
<br>CMake Error at CTestConfig.cmake:8 (ctest_submit):<br>  Unknown CMake command &quot;ctest_submit&quot;.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-2.6/Modules/CTest.cmake:50 (INCLUDE)<br>  CMakeLists.txt:117 (INCLUDE)<br>
<br>- if I give it in CMakeLists.txt and give &quot;cmake .&quot; then I am getting below error :<br><br>CMake Error at CMakeLists.txt:121 (ctest_submit):<br>  Unknown CMake command &quot;ctest_submit&quot;.<br><br>So want to ask :<br>
1. Am I using ctest_submit() properly for the purpose of submitting the customized report or is there any other way to do this?<br>2. In which file should I give ctest_submit() (CTestConfig.cmake or
 CMakeLists.txt)?<br></div></td></tr></tbody></table></blockquote><div><br></div><div><br></div><div>Neither. Calls to ctest_submit belong in &quot;ctest -S&quot; scripts that drive dashboard builds and submissions. CMake itself does not implement any of the &quot;ctest_*&quot; commands, so you can only call them from ctest scripts.</div>
<div><br></div><div>HTH,</div><div>David</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0">
<tbody><tr><td valign="top" style="font:inherit"><div><br>Regards,<br>Girish</div></td></tr></tbody></table><br>

      <br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>