[CMake] detecting if c++11 available

2013-02-19 Thread Brad Bell
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 av

Re: [CMake] detecting if c++11 available

2013-02-19 Thread Matthew Woehlke
On 2013-02-19 18:36, Brad Bell wrote: 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. In general, you should test for specific featu

Re: [CMake] detecting if c++11 available

2013-02-19 Thread Thompson, K T
ell > Sent: Tuesday, February 19, 2013 4:36 PM > To: cmake@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 &

Re: [CMake] detecting if c++11 available

2013-02-20 Thread Benjamin Eikel
Hello Brad, Am Mittwoch, 20. Februar 2013, 00:36:18 schrieb Brad Bell: > 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 th

Re: [CMake] detecting if c++11 available

2013-02-20 Thread Theodore Papadopoulo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nowadays, asking for c++-11 is probably too coarse as implementations are usually uncomplete. So you have a stdc++-11 switch and still missing some features on which you rely. Another technique is to test features instead of the whole standard, that w

Re: [CMake] detecting if c++11 available

2013-02-21 Thread Todd Greer
n Eikel Cc: cmake@cmake.org Subject: Re: [CMake] detecting if c++11 available -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nowadays, asking for c++-11 is probably too coarse as implementations are usually uncomplete. So you have a stdc++-11 switch and still missing some features on which you rely