[vtk-developers] VTK forces -std=c++11 ?

Brad King brad.king at kitware.com
Mon Jan 14 06:36:08 EST 2019


On 1/11/19 6:56 PM, Elvis Stansvik wrote:
> Just a wild guess, try -DCMAKE_CXX_STANDARD=14 instead of
> -DCMAKE_CXX_FLAGS="-std=c++14"? Maybe CMake will consider
> CMAKE_CXX_STANDARD=14 as having the cxx_std_11 compile feature and not
> "downgrade" you?

Yes, that is the intended way.  I should have mentioned it.
The CMake issue I linked is about support for standards that
CMake does not yet know about, but CMake already has C++20.

-Brad


More information about the vtk-developers mailing list