While targeting the Ogre Render System, everything compiles just fine with:
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DMYGUI_RENDERSYSTEM=3 ../mygui; make -j8
as shown here:
https://travis-ci.org/psi29a/mygui/jobs/34474097
however using the OpenGL Render System, it bombs out because it requires windows.h and the rabbit hole goes downwards from there. Doing this:
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DMYGUI_RENDERSYSTEM=4 ../mygui; make -j8
fails as shown here:
https://travis-ci.org/psi29a/mygui/jobs/34474098
The only way to make it through is to disable the tools and demos, as either would require compiling Common which is where the problem is.
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DMYGUI_RENDERSYSTEM=4 -DMYGUI_BUILD_DEMOS=FALSE -DMYGUI_BUILD_TOOLS=FALSE ../mygui; make -j8
I would expect that I should be able to do both with demos and tools without requiring windows. Perhaps there is some misplaced #ifdef logic going on?
enhancement