Thanks Bill, effectively part of a project was setting a -D flag based
on the value of BUILD_TESTING. Refactored some code and everything is
behaving as expected now :)<br><br>Cheers<br><br><div class="gmail_quote">2009/3/23 Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Adolfo Rodríguez wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;m not setting any -D flags that depend on BUILD_TESTING. I only use the variable to guard entering the subdirectories where tests are generated:<br>
<br>
if(BUILD_TESTING)<br>
  add_subdirectory(test)<br>
endif(BUILD_TESTING)<br>
<br>
I am working in a project that adds a test subfolder to each folder where a target is generated. Could this be it? However, no source files (or its associated flags) are being changed. I&#39;m just preventing CMake from entering the test dirs.<br>

<br>
</blockquote>
<br></div>
Try make VERBOSE=1 more make -d to figure out why it is rebuilding.  It should not.<br><font color="#888888">
<br>
-Bill<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Adolfo Rodríguez Tsouroukdissian<br><br>Robotics engineer<br>PAL ROBOTICS S.L<br><a href="http://www.pal-robotics.com">http://www.pal-robotics.com</a><br>Tel. +34.93.414.53.47<br>
Fax.+34.93.209.11.09<br>