[CMake] detecting if c++11 available

Theodore Papadopoulo Theodore.Papadopoulo at inria.fr
Wed Feb 20 05:15:47 EST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nowadays, asking for c++-11 is probably too coarse as implementations
are usually uncomplete. So you have a stdc++-11 switch and still
missing some features on which you rely.

Another technique is to test features instead of the whole standard,
that would be more robust...

I did something like that to get a cmake build of a library used to
build with automake/autoconf (which have such a facility). It might
not be very complicated to extend to new features....

	Theo.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlEkolIACgkQEr8WrU8nPV2AGgCgoXf6NcHIltBs2RuF4XLDcIgk
k0EAn3XVl5xsgaAw6SU2ZUugnj7OdKQL
=YSl4
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CheckCXXFeatures.cmake.tgz
Type: application/x-compressed-tar
Size: 15992 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130220/10620574/attachment-0001.bin>


More information about the CMake mailing list