-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[sfml][imgui-sfml] Push SFML_STATIC_LIBRARIES setting into sfml
#11800
Merged
BillyONeal
merged 6 commits into
microsoft:master
from
ras0219:dev/roschuma/sfml-static
Aug 22, 2020
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1757f87
[sfml] Force SFML_STATIC_LIBRARIES to match how sfml was built
ras0219-msft e3f15be
[imgui-sfml] Rely on sfml to correctly set SFML_STATIC_LIBRARIES
ras0219-msft 95f5ee0
[imgui-sfml] Add dependency on opengl to enable auto-linking on Windows
ras0219-msft d7a5071
Merge remote-tracking branch 'origin/master' into dev/roschuma/sfml-s…
BillyONeal 206eca8
Merge remote-tracking branch 'origin/master' into dev/roschuma/sfml-s…
BillyONeal bf9aaff
Merge branch 'master' of https:/microsoft/vcpkg into dev/…
ras0219-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Source: imgui-sfml | ||
Version: 2.1-1 | ||
Version: 2.1-2 | ||
Homepage: https:/eliasdaler/imgui-sfml | ||
Description: ImGui binding for use with SFML | ||
Build-Depends: sfml, imgui | ||
Build-Depends: sfml, imgui, opengl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Source: sfml | ||
Version: 2.5.1-7 | ||
Version: 2.5.1-8 | ||
Homepage: https:/sfml/sfml | ||
Description: Simple and fast multimedia library | ||
Build-Depends: freetype, libflac, libogg, libvorbis, openal-soft, stb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get why you need this change. I also don't get why
imgui-sfml
requiredSFML_STATIC_LIBRARIES
since SFML seems to already set
SFML_STATIC_LIBRARIES
if required.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is potentially an issue in the reverse case -- if
sfml
is dynamic andimgui-sfml
is static. This change ensures thatSFML_STATIC_LIBRARIES
is always set exactly according to how sfml was built, regardless of whether the outer project sets the variable or not.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better make that a
FATAL_ERROR
instead of silently accepting it because it means a consumer needs to be patched instead and might be assuming something wrongly.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it's better to be optimistic here:
Finally, it's essentially impossible for consumers to do the right thing; setting
SFML_STATIC_LIBRARIES
requires knowledge of whether SFML was built statically or not. Therefore, it's actually somewhat impossible to patch consumers correctly.