[CMake] Using CMAKE_CXX_KNOWN_FEATURES
Stephen Kelly
steveire at gmail.com
Tue Nov 25 07:44:11 EST 2014
Andrew Maclean wrote:
> Is this a reasonable approach to using cx_11 features on multiple
> platforms? The issue is that I think you need to manually select the MSVC
> compiler version that supports these features target_compile_features only
> works for gcc.
Correct, I'm no confident I can maintain the known MSVC features as new MSVC
releases appear and as CMake gains knowledge of new features in the future.
If you can do that, then
https://gitorious.org/cmake/steveires-cmake/source/0156b7f4f169fe91971a072460db0f781ade2119:Modules/Compiler/MSVC-CXX-FeatureTests.cmake
is a starting point listing features of some existing releases. It should
maybe be updated with information from
http://blogs.msdn.com/b/vcblog/archive/2014/11/17/c-11-14-17-features-in-vs-2015-preview.aspx
Please post to the cmake-developers mailing list if you wish to maintain
that file, and we can get it into a future release.
Thanks,
Steve.
More information about the CMake
mailing list