Visual Studio specific flags in Gui CMake file.
Building with
cmake -DOGS_GUI:BOOL=on -DCMAKE_BUILD_TYPE=RelWithDebInfo
results in error when using gcc because of Visual Studio specific build flags defined in Gui/CmakeLists.txt.
I don't know where to put these flags. Are they specific to the gui? I would drop them if not absolutely necessary.