Why are these extensions not turned off by default? Normally, things should conform to the standards out-of-the-box; and you should have to explicitly enable extensions. Following that principle would have avoided this entire thread.
-- Elizabeth On Wed, Jun 15, 2016 at 1:50 AM, Patrick Boettcher < patrick.boettc...@posteo.de> wrote: > On Mon, 13 Jun 2016 20:05:23 +0200 > Patrick Boettcher <patrick.boettc...@posteo.de> wrote: > > > You also need to correctly set the CXX_EXTENSIONS properties to get > > > a standard standard. > > > > Yep, > > > > set(CXX_EXTENSIONS OFF) > > > > seems to do the trick - thanks. > > Well, it is > > set(CMAKE_CXX_EXTENSIONS OFF) > > actually. Before the target-definition (add_library or add_executable). > > > -- > Patrick. > -- > > 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 >
-- 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