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

Robert Maynard robert.maynard at kitware.com
Fri Jan 11 15:08:56 EST 2019


Adding an option to VTK to not specify these features will also need to be
propagated to all thirdpary libraries that use things such as `cxx_std_11`
( aka VTK-m ).



On Fri, Jan 11, 2019 at 3:04 PM Brad King via vtk-developers <
vtk-developers at vtk.org> wrote:

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtk-developers/attachments/20190111/878355a8/attachment.html>


More information about the vtk-developers mailing list