[cmake-developers] FindCXX11.cmake
Yury G. Kudryashov
urkud.urkud at gmail.com
Mon Apr 9 15:44:23 EDT 2012
Brad King wrote:
> On 4/6/2012 12:11 PM, Rolf Eike Beer wrote:
>> Attached is what I currently have.
>
> Neat. I like the change to "CheckCXX11Features" instead of "FindCXX11".
OK. I want some way to explicitly state the required and optional C++11
features, and don't waste CPU checking for other features.
What do you think about the following syntax? I'm ready to implement it and
write documentation next week-end.
# check for two optional features
check_cxx11_features(feature1 feature2)
# check for two required features
check_cxx11_features(feature1 feature2 REQUIRED)
# check for optional AND required features
check_cxx11_features(
REQUIRED required1 required2
OPTIONAL optional1 optional2)
--
Yury G. Kudryashov,
mailto: urkud at mccme.ru
More information about the cmake-developers
mailing list