<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 25, 2013 at 7:35 PM, Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On 4/25/2013 9:52 AM, Bill Hoffman wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I see it now.<br>
<br>
Can you run:<br>
<br>
ctest -D Experimental -VV<br>
</blockquote></div>
OK, never mind I know what is wrong...<br>
<br>
make ExperimentalCoverage just does the coverage part.<br>
make Experimental<br>
make ExpermentalCoverage should work.<br>
<br>
Or<br>
<br>
cd buildtree<br>
ctest -T all<br>
<br>
<br>
Available options are:<br>
  ctest -T all<br>
  ctest -T start<br>
  ctest -T update<br>
  ctest -T configure<br>
  ctest -T build<br>
  ctest -T test<br>
  ctest -T coverage<br>
  ctest -T memcheck<br>
  ctest -T notes<br>
  ctest -T submit</blockquote><div><br><br></div><div>I have been debugging this issue. To make sure that I have a clean environment I am testing the code on Ubuntu 12.4 32bit.  My system was installed only with &quot;gcov&quot;, lcov was not installed. Now I have installed &quot;lcov&quot; and also I have modified my main cmake file with the below given code frahment. Instead of modifying CXX_FLAGS, added the profiling related compiler arguments using the &quot;ADD_DEFINITIONS&quot;. In the first case (modifying CXX_FLAGS) your suggestion &quot;make Experimental&quot; did not work. Now (ADD_DEFINITIONS) &quot;make Experimental&quot; works without any problem. Can you comment on why it was not working earlier?<br>
<br>#Code coverage related code<br><br>SET (DO_CODE_COVERAGE false CACHE BOOL &quot;Enable Code coverage?&quot;)<br><br>if(DO_CODE_COVERAGE)<br>    ADD_DEFINITIONS(-fprofile-arcs -ftest-coverage)<br>    LINK_LIBRARIES(gcov)<br>
endif(DO_CODE_COVERAGE)<br><br></div><div>Thanks,<br></div><div>  Lloyd<br></div><div></div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""><div class="h5"><br>
<br>
<br>
-Bill<br>
<br>
<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/<u></u>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/<u></u>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/<u></u>listinfo/cmake</a><br>
</div></div></blockquote></div><br></div></div>