On 08/23/2015 06:32 AM, Rolf Eike Beer wrote: > $<$<COMPILE_FEATURES:cxx_decltype_incomplete_return_types>:BOOST_RESULT_OF_USE_DECLTYPE> [snip] > So, in theory, this will set the definition if the compiler supports > decltype, > and just don't set it if not. And it works fine for g++. The problem is when > it > comes to MSVC: > > There is no MSVC version that supports this feature properly, so there is no > variable for this compiler defined. Or just think of $FooBarC++, where noone > cared to report the supported features. No variable either. For these > compilers the above expression fails, because this is no recorded feature of > the compiler. I would have expected it to just not set the definition, but > not > error out.
I haven't investigated in detail but I think this means that the internals of the COMPILE_FEATURES generator expression need to be taught to tolerate lack of compile features for the current toolchain to simply return 0. -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
