On Monday 29 April 2013, Rolf Eike Beer wrote: > Alexander Neundorf wrote: > > On Sunday 28 April 2013, Rolf Eike Beer wrote: > > > One question I see increasingly often is "how do I test for C++11 > > > support" or for specific parts of that. For 2.8.12 I plan to include > > > the check module I wrote for that a while back, and that I have > > > reworked in the last weeks. You can find the current state in the > > > "rework" branch of this repository: > > > > > > git://anongit.kde.org/scratch/dakon/cmake-cxx11 > > > > Is the try_run() in all cases necessary ? > > It would be better if a try_compile() would suffice, that's faster and > > then it works the same way when cross-compiling and when not. > > I'm not sure about this, but the other ones I consider real bugs. Thanks > for catching them, will fix soon.
Or IOW: if possible at all, try really hard to get away with only try_compile(), i.e. avoid try_run(). Alex -- 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