VTK compile definitions causing warnings in the compiler
NB: There is an easy fix (see below)! But tracking it down took so much work that I just made a local patch for my project instead of a PR here...
Using VTK with another project via CMake, I encountered this (many, many times) during compilation: :0:20: warning: ISO C++11 requires whitespace after the macro name
I've tracked it down to this compile definition: -DvtkRenderingCore_AUTOINIT=3"(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2)"
The warning disappears after placing a space after each item in the list, i.e.: -DvtkRenderingCore_AUTOINIT=3"(vtkInteractionStyle ,vtkRenderingFreeType ,vtkRenderingOpenGL2 )"
(Aside) In the COMPILE_DEFINITIONS property as well as the ${VTK_DEFINITIONS} variable in CMake, this appears without quotes, like this: -DvtkRenderingCore_AUTOINIT=3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2)
VTK Version 8.1.1, compiled from source, g++ 5.4.0, Ubuntu 16.04