I'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'm just preventing CMake from entering the test dirs.<br>
<br><br><br><div class="gmail_quote">2009/3/23 Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>></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;">
Hi,<br>
<br>
I have a project that uses CTest. I'm using the auto-generated BUILD_TESTING variable to enable/disable the test-related parts of my build tree. What strikes me as unusual is that when I build my project with BUILD_TESTING set to ON (hence all test executables are built), and then toggle BUILD_TESTING to OFF, the subsequent call to make rebuilds all my project from scratch. I would expecting the build to do nothing, since all other targets have suffered no changes. Is this behavior intentional?<br>
<br>
</blockquote>
<br></div>
Does it change a -D flags that gest sent to all of your files?<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>