Make sure you also set CMAKE_CXX_STANDARD_REQUIRED to TRUE, otherwise if the requested standard can't be found with the current compiler then you'll get a fallback to one that can. With the required set to TRUE, CMake will error out with something about the current compiler not supporting the requested standard.
---------- Chuck Atkins Staff R&D Engineer, Scientific Computing Kitware, Inc. (518) 881-1183 On Thu, Dec 1, 2016 at 12:02 PM, Adam Rankin <aran...@robarts.ca> wrote: > Hello all, > > > > I have switched my project over to using the CMAKE_CXX_STANDARD variable > and it does not seem to be recognized by the ITK external project that I > configure/build. > > > > The project does not build (ITK tag 4.10.0) with > CMAKE_CXX_STANDARD:STRING=11, but does build with CMAKE_CXX_FLAGS:STRING=”… > -std=c++11” > > > > Before I dive into too many details, is anyone familiar with any issues > surrounding this variable? > > > > Cheers, > > Adam > > > > -- > > 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 >
-- 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