New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Place bundled SFML include paths before others #841
Place bundled SFML include paths before others #841
Conversation
This allows to build with bundled SFML when system SFML (of another version) is installed
This branch should only be used if system SFML is not found. What is this trying to fix? |
Delroth, Should not it also be used if you have an installed version less than the current, but greater than 1.x? I.E. version 2.0 instead of 2.1? I don't think the version check was ever updated when 2.1 was released, because right now (from the comment) it looks like cmake is just looking for ANY major version. I could be wrong (as per usual), but this would make the dolphin version (more reliably updated than individuals versions) without constantly having to update the version check. |
I think 2.0 Has bugs which we had to work around in our version in On Sat, Aug 23, 2014 at 4:06 PM, badkarma12 notifications@github.com
|
Well, the fact that local includes must come before system ones should be quite enough to fix it. In my specific case, there are two problems:
That said, it's much less painful for me to patch the CMakeLists.txt to unconditionally use bundled sfml. For all described use cases, this change is required. |
This seems like a good enough reason... @delroth , @Sonicadvance1 , |
I have SFML 2.1 installed here(Ubuntu 14.04) and Dolphin correctly uses the version from the externals and compiles without issue. |
While the buildbot succeeded, all warnings need to be fixed with this in order not to break master, which uses |
Sorry @archshift I was a bit confused where the log was coming from (thought it was a different PR as the windows buildbot was acting a bit strange at the time)...this is just a cmake change so it wouldn't need such care. |
As I've said, the change should be merged ragardless - local include paths must always come before system ones. Regarding the build failure with SFML 2.1, I can open another issue. Maybe that's related to clang which is used on newer versions of FreeBSD instead of gcc. |
Interesting. Alright. |
Place bundled SFML include paths before others
This allows to build with bundled SFML when system SFML (of another version) is installed