-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
CMake install() changes, static linking build, mark directories with fs::path{} #65822
Merged
Conversation
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
Why does the CMake definition need so much maintenance work? Or rather, what problem does this PR solve? |
I have expanded a bit the PR text, hope it answer your questions. |
Clang-tidy fails in code this PR did not changed. |
The FindSDL2*.cmake modules create the *::*-static imported targets like VCPKG does. This way we can reuse the same names and reduce the complexity in the main and src CMakeLists.txt.
The presets inherits from the configuration not using VCPKG
14 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
astyled
astyled PR, label is assigned by github actions
BasicBuildPassed
This PR builds correctly, label assigned by github actions
<Bugfix>
This is a fix for a bug (or closes open issue)
[C++]
Changes (can be) made in C++. Previously named `Code`
Code: Build
Issues regarding different builds and build environments
[JSON]
Changes (can be) made in JSON
json-styled
JSON lint passed, label assigned by github actions
Translation
I18n
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.
Summary
None
Purpose of change
Changes how CMake and some code handle paths.
Edit: Not fixing problems here. It is more about expanding what configurations can be build through CMake definitions: extended explanations on task list below.
Describe the solution
pkg-config
where possible. This allows to discover static library files in Ubuntu which are not by packages' own.cmake
config filesfs::path{}
Describe alternatives you've considered
A non-dynamic executable cannot really be built as in VCPKG, because not all requirements are there. It reduces anyway the dynamic dependencies.
Testing
Can't get SDL/TILES to run via WSL2's pulseaudio/CygwinX/Wayland transports.
Additional context
Will start with draft PR, responding to C/I issues