[vtk-developers] VTK forces -std=c++11 ?
Brad King
brad.king at kitware.com
Fri Jan 11 15:04:21 EST 2019
On 1/11/19 2:59 PM, Sean McBride wrote:
> In cmake I set CMAKE_CXX_FLAGS to "-std=c++2a" but when I do "make VERBOSE=1"
> I see that something is passing -std=c++11:
>
> Is this a bug? If not, how do I specify the language variant?
It's likely CMake adding it based on Common/Core/CMakeLists.txt:
```
vtk_module_compile_features(VTK::CommonCore
PUBLIC
cxx_std_11
cxx_nullptr
cxx_override)
```
There is an open CMake issue about handling future standards:
https://gitlab.kitware.com/cmake/cmake/issues/17146#note_300071
Lacking a full solution in CMake, VTK could gain an option to not
specify these feature requirements.
-Brad
More information about the vtk-developers
mailing list