<div dir="ltr">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 avoid mismatched runtime library problems. More details in one of my blog articles about this here:<div><br></div><div><a href="https://crascit.com/2015/03/28/enabling-cxx11-in-cmake/">https://crascit.com/2015/03/28/enabling-cxx11-in-cmake/</a><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 10:05 PM, Xi Shen <span dir="ltr"><<a href="mailto:davidshen84@gmail.com" target="_blank">davidshen84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>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.</div><div><br></div><div>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 matching feature in the description.</div><div><br></div><div><br></div><div><span style="line-height:1.5">[1]: <a href="https://cmake.org/cmake/help/v3.1/command/target_compile_features.html" target="_blank">https://cmake.org/cmake/help/v3.1/command/target_compile_features.html</a></span><br></div><div>[2]: <a href="https://cmake.org/cmake/help/v3.1/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html#prop_gbl:CMAKE_CXX_KNOWN_FEATURES" target="_blank">https://cmake.org/cmake/help/v3.1/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html#prop_gbl:CMAKE_CXX_KNOWN_FEATURES</a></div><div><br></div><div>Thanks,</div><div>David</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div><span class="HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div dir="ltr"><p dir="ltr">Regards,<br>
David</p>
</div>
</font></span><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Craig Scott<br><div>Melbourne, Australia</div><div><a href="http://crascit.com" target="_blank">http://crascit.com</a><br></div></div></div></div></div>
</div>