[cmake-developers] Recording compiler features for older gcc versions

Rolf Eike Beer eike at sf-mail.de
Mon Jan 9 15:55:59 EST 2017


Am Montag, 9. Januar 2017, 14:36:56 schrieb Brad King:
> On 01/09/2017 04:59 AM, Rolf Eike Beer wrote:
> > I need for several projects the ability to set CMAKE_C_STANDARD on older
> > compilers
> 
> I think it would be fine to add the minimum infrastructure needed for
> that and then just disable the WCDH and Tests/* pieces that don't work
> with it.  We could also just not document this support.  Until more
> people are interested in it that have time to implement it fully, I don't
> think we need to fully support it beyond your use case.

I'm fine with that. I will probably not have time to look into this the coming 
days, but I hope I can do it before the 3.8 feature freeze.

> > -the standard check for working features is currently auto_type, which is
> > not supported by older compilers. Basically all support long_long_type,

> I'm hesitant to switch to long_long_type because that is often supported
> by compilers in C++98 mode, so it may defeat the test.

That was also the reason I was reluctant about this. So we need to come up 
with a better solution, e.g. use auto_type if supported by the compiler and 
fall back to long_long_type for others. Please revert my topic from stage for 
the moment, it will take me at least until end of the week before I have time 
to look at this again.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20170109/1b20f5f1/attachment-0001.sig>


More information about the cmake-developers mailing list