<div class="gmail_quote">On Tue, Aug 25, 2009 at 1:32 PM, j s <span dir="ltr"><<a href="mailto:j.s4403@gmail.com">j.s4403@gmail.com</a>></span> 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 am using the Visual Studio generator from the cmake binary distribution. If I change flags using ADD_DEFINITIONS, I notice that it doesn't trigger a rebuild of all the affected files.<br><br>Is this by design?</blockquote>
<div><br>
I've known and worked around this limitation for a few years now.
The easiest thing to do is clean the entire solution if you change any
compile flags whatsoever (unless you know exactly what you changed and
the impact of doing it).<br><br>The problem is that VS doesn't remember the old flags when you open up a project file with new flags so isn't capable of cleaning the project for you. This issue could probably be worked around in CMake itself one way or another but it's never been worked on to my knowledge.<br>
<br></div></div>-- <br>Philip Lowman<br>