Interesting. Looked into the Pi differences myself last year but didn't really bother to try it since it can get quite some PITA as you'd essentially have to manage the surface yourself, update/scale/move it with your window, etc.
Would be nice being able to omit X as a whole, considering it's not really used anyway.
Edit:
Why the "SFML_BCMHOST" define? Couldn't you hardcode it specific to the Raspberry Pi as a platform? I'm quite sure there's some CMake variable to check.
Edit 2:
According to Stack Exchange you should be able to use the following in CMake:
include(CheckIncludeFile
)CHECK_INCLUDE_FILE
(/opt/vc/include/bcm_host.h BCMHOST
)
Hi Mario, I agree that it looks like it would be a pain to implement this much further. Plus there seems to be next to no documentation available for dispmanx! Luckily I only need a fullscreen window
I thought about having an automatic check for the Pi, but decided to do the define because I didn't want to prevent people from building the software rendered version on the pi if they wanted to (seems possible given the limitations on this atm).
check_include_file doesn't seem to pick up a full absolute path like what you linked from stack exchange. I'm pretty green when it comes to cmake but I think you need to do something like "if (EXISTS /opt/vc/include/bcm_host.h)" but I'm not sure whether that would work for cross compiles, etc.
cheers