Re: [CMake] c++11 feature and cmake feature name mapping

2016-04-14 Thread Nicholas Braden
I don't think CMake can yet detect features of the standard library implementation, only features of the language. One compiler may support more features than another compiler which supports more of the standard library, and in some cases the same compiler can support two or more different standard

Re: [CMake] c++11 feature and cmake feature name mapping

2016-04-14 Thread Craig Scott
There are pros and cons to specifying individual compiler features compared to just specifying a C++ standard overall. It depends somewhat on what else you have to link in. For example, if you link to a third party library built with C++11 settings, you will have to link in that same library to avo

[CMake] c++11 feature and cmake feature name mapping

2016-04-14 Thread Xi Shen
Hi, I know we should use [target_compile_features][1] to enable c++11 features in cmake. And I also found the [descriptions][2] about the features. In my code I used the `random_device`, `default_random_engine` and `uniform_int_distribution` which are a new features, but I could not find a matchi