[vtk-developers] VTK forces -std=c++11 ?
Sean McBride
sean at rogue-research.com
Fri Jan 11 15:14:22 EST 2019
On Fri, 11 Jan 2019 15:04:21 -0500, Brad King said:
>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
It doesn't seem to matter that I've specified a 'future standard', even if I use -std=c++14 I get:
cd /Users/sean/external/VTK-8bin/Utilities/KWIML/vtkkwiml/test && /Users/sean/llvm/llvm-rel-install/bin/clang++ -DKWIML_LANGUAGE_C -DKWIML_LANGUAGE_CXX -DVTK_IN_VTK -I/Users/sean/external/VTK-8bin/Utilities/KWIML -I/Users/sean/external/VTK/Utilities/KWIML -std=c++14 -g -std=c++11 -o CMakeFiles/kwiml_test.dir/test_include_CXX.cxx.o -c /Users/sean/external/VTK/Utilities/KWIML/vtkkwiml/test/test_include_CXX.cxx
Sean
More information about the vtk-developers
mailing list