[cmake-developers] Keeping unit tests useful and splitting feature support from platform support

Rolf Eike Beer eike at sf-mail.de
Sun Oct 16 08:52:25 EDT 2011


Stephen Kelly wrote:

> What I'd like to see is a distinction of feature support from platform
> support. In my case, I care about writing some features in cmake, but I
> don't care about watcom, GCC 3.3.1 etc. What I'd like to do is make sure my
> feature works on some 'reference platforms', which could be anything 'non-
> ancient', and fixing it on the ancient ones would become not-my-problem.

I find this all natural (but it's not my decision). On the other hand we have 
some other features (like e.g. the source_group stuff) that depend on 
generators and compilers.

One thing that I would only call "fallout" of such a thing, but that I would 
love to see is a way to get the compiler version for the currently active (C, 
C++, Fortran, ASM) compilers. That would probably help with your use case, 
too, when you can determine the version and show a sensible error message if 
the compiler version is too old.

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


More information about the cmake-developers mailing list