-
Notifications
You must be signed in to change notification settings - Fork 258
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: cleanup #1610
Closed
joergsteffens
wants to merge
15
commits into
bareos:master
from
joergsteffens:dev/joergs/master/cmake-cleanup
Closed
cmake: cleanup #1610
joergsteffens
wants to merge
15
commits into
bareos:master
from
joergsteffens:dev/joergs/master/cmake-cleanup
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
8169a90
to
ce28681
Compare
5edc0be
to
7acaac3
Compare
Today with cmake version 3.28.1 a new policy is visible. I'm getting this new warning we may want to fix
Files to patch are the following
|
std::find_if is sometimes declared as [[nodiscard]]. As such we should not ignore its return value. This commit also slightly refactors the code to remove the use of std::find_if alltogether.
is_reloading can written to/ read from multiple different threads at the same time. As such we cannot just do a test-then-set approach (even if each of those operations were atomic). Instead we need to atomically test _and_ set the flag to actually prevent two different threads from entering.
The base config path may change on a reload!
7acaac3
to
527328e
Compare
exec_program is deprecated since cmake >= 3.0
a8e2182
to
9cb7f7b
Compare
Appiled changes for CMP0153. |
Replaced by #1661. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
During PR #1592 it turns out that a number of cmake config settings could be cleaner,
especially when it comes to macOS configuration.
Instead of integrating this in the bugfixing PR, this is now handled in this separate PR.
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
Make sure you check/merge the PR using
devtools/pr-tool
to have some simple automated checks run and a proper changelog record added.General
Source code quality
Tests