[CMake] OS X architecture changes interfere with CheckTypeSize()?

Michael Wild themiwi at gmail.com
Wed Aug 11 16:47:32 EDT 2010


On 11. Aug, 2010, at 22:31 , Erik Lindahl wrote:

> Hi Mike,
> 
> On Aug 11, 2010, at 10:16 PM, Michael Jackson wrote:
>> 
>> So CMake is _trying_ to help you as best it can at the moment. You should still be able to wrap the test to CheckTypeSize() with your own function, detect the change to CMAKE_OSX_ARCHITECTURES and the forcibly rerun the test again.
>> 
>> Hope some of that helps.
> 
> Yes, the entire discussion has been of great help, and I actually wasn't aware that you could get the _entire_ #define code in one string out of the routine - I was trying to use the Key/value pairs.
> 
> However, even in this case it's a bit strange to the novice that it _only_ works if you add the architectures on the command line, not if you change it in the GUI (which I think is what most users - like me - will try first :-)
> 
> Cheers,
> 
> Erik

That's why we need the "dependent-variable" concept... In my project I'm doing this already manually using INTERNAL cache variables to detect changes and unset dependent variables.

Michael



More information about the CMake mailing list