<div>That wouldn't be good for what I am trying to do. I just need:</div>
<div>_USE_MATH_DEFINES</div>
<div> </div>
<div>for all files so that Visual C++ recognizes M_PI. Creating a header file dependency could trigger a huge storm of recompilations just by touching the file.</div>
<div> </div>
<div>I'll just have to be careful around Visual C++.</div>
<div> </div>
<div>Juan<br><br></div>
<div class="gmail_quote">On Mon, Aug 31, 2009 at 11:16 AM, Clinton Stimpson <span dir="ltr"><<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="h5">On Sunday 30 August 2009 12:20:51 pm Philip Lowman wrote:<br>> On Tue, Aug 25, 2009 at 1:32 PM, j s <<a href="mailto:j.s4403@gmail.com">j.s4403@gmail.com</a>> wrote:<br>> > I am using the Visual Studio generator from the cmake binary<br>
> > distribution. If I change flags using ADD_DEFINITIONS, I notice that it<br>> > doesn't trigger a rebuild of all the affected files.<br>> ><br>> > Is this by design?<br>><br>> I've known and worked around this limitation for a few years now. The<br>
> easiest thing to do is clean the entire solution if you change any compile<br>> flags whatsoever (unless you know exactly what you changed and the impact<br>> of doing it).<br>><br>> The problem is that VS doesn't remember the old flags when you open up a<br>
> project file with new flags so isn't capable of cleaning the project for<br>> you. This issue could probably be worked around in CMake itself one way or<br>> another but it's never been worked on to my knowledge.<br>
<br></div></div>Or how about putting it into a configured header file instead?<br>Visual Studio rebuilds correctly if you do it that way.<br><br>Clint<br><br></blockquote></div><br>