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: [email protected]

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to