[CMake] [ANNOUNCE] CMake 3.1.0-rc1 now ready for testing!

Daniel Schepler dschepler at scalable-networks.com
Wed Oct 29 12:58:28 EDT 2014


Where would I find the list of available C++ language features?  For instance, I would suppose there's one for "auto", one for move constructors/assignment operators, and one for "= delete" of default constructors/destructors et al.  These are probably the ones we'd be most interested in here, for the moment.  (Though with our requirements to support older C++ compilers, we might not actually be able to use auto, as the fallback would need the full type anyway.)  Also, is there a portability macro provided for the "= delete" feature?

Also, how would I mark a target so that it activates C++11 features if available, but falls back to old C++ if not?  I do see the section on detecting compiler features, but it's not clear to me how exactly how I'd make the target use CXX_STANDARD 11 only if available.
-- 
Daniel



More information about the CMake mailing list