Re: [CMake] triggering rebuild on windows

2009-09-01 Thread Michael Wild
On 1. Sep, 2009, at 4:12, j s wrote: According to Microsoft, the math macros are not part of standard C/C+ +: http://msdn.microsoft.com/en-us/library/4hwaceh6(VS.80).aspx I'm not going to quibble with them on that point, as they were nice enough to provided them with: _USE_MATH_DEFINES as

Re: [CMake] triggering rebuild on windows

2009-08-31 Thread Philip Lowman
On Mon, Aug 31, 2009 at 10:12 PM, j s wrote: > According to Microsoft, the math macros are not part of standard C/C++: > http://msdn.microsoft.com/en-us/library/4hwaceh6(VS.80).aspx > > I'm not going to quibble with them on that po

Re: [CMake] triggering rebuild on windows

2009-08-31 Thread j s
According to Microsoft, the math macros are not part of standard C/C++: http://msdn.microsoft.com/en-us/library/4hwaceh6(VS.80).aspx I'm not going to quibble with them on that point, as they were nice enough to provided them with: _USE_MATH_DEFINES as an alternative. The problem is the config.h

Re: [CMake] triggering rebuild on windows

2009-08-31 Thread Philip Lowman
On Mon, Aug 31, 2009 at 8:02 PM, j s wrote: > I am doing cross-platform compilation. I don't want everything to > recompile on all platforms. That is a risk with having a configuration > header file. If I remember correctly, cmake would ignore conditional > include guards when doing dependency

Re: [CMake] triggering rebuild on windows

2009-08-31 Thread j s
I am doing cross-platform compilation. I don't want everything to recompile on all platforms. That is a risk with having a configuration header file. If I remember correctly, cmake would ignore conditional include guards when doing dependency scanning. Therefore: #ifdef WIN32 #include "config.hh

Re: [CMake] triggering rebuild on windows

2009-08-31 Thread David Cole
Your original question was about why not everything was recompiling... Then, when a solution is offered, you say "but if I do that everything will recompile!" We thought that's what you wanted... :-) On Mon, Aug 31, 2009 at 2:22 PM, j s wrote: > That wouldn't be good for what I am trying to do

Re: [CMake] triggering rebuild on windows

2009-08-31 Thread j s
That wouldn't be good for what I am trying to do. I just need: _USE_MATH_DEFINES 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. I'll just have to be careful around Visual C++. Juan On

Re: [CMake] triggering rebuild on windows

2009-08-31 Thread Clinton Stimpson
On Sunday 30 August 2009 12:20:51 pm Philip Lowman wrote: > On Tue, Aug 25, 2009 at 1:32 PM, j s wrote: > > 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 fil

Re: [CMake] triggering rebuild on windows

2009-08-30 Thread Philip Lowman
On Tue, Aug 25, 2009 at 1:32 PM, j s wrote: > 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. > > Is this by design? I've known and worked around this li

[CMake] triggering rebuild on windows

2009-08-25 Thread j s
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. Is this by design? Juan ___ Powered by www.kitware.com Visit other