[CMake] detecting if c++11 available
Thompson, K T
kgt at lanl.gov
Tue Feb 19 19:01:08 EST 2013
Hi Brad,
I am using a modified version of the code examples offered at http://pageant.ghulbus.eu/ "C++11 Detection with CMake" from February 15, 2012.
-kt
> -----Original Message-----
> From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of
> Brad Bell
> Sent: Tuesday, February 19, 2013 4:36 PM
> To: cmake at cmake.org
> Subject: [CMake] detecting if c++11 available
>
> My goal is to use some new c++11 features if they are available, otherwise
> to stick to the c++03 features. I need to build test programs that check for
> correctness as well as distribute an include file library.
>
> Is there a way in cmake to detect if c++11 is available and to use it when
> it is available ? I would like this to be system and compiler independent.
>
>
>
> --
>
> 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://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list