CMake improvements and compiler warning fixes #810
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.
Pull Request Details
I extracted these changes from my other MR that was closed just now (#679) without any changes to the examples. The original changes were made over a year ago and after rebasing a few of the fixes done there have already been committed in other MRs. What remains is rather little, so should hopefully pose no problems to merge
Description
Basically, after rebasing onto the current version of uhd, here's what these changes still entail:
install_name
wasnt manually set in CMake, which caused a warning in newer CMake versions due to breaking policy changesHANDLE_VERSION_RANGE
flagWhich devices/areas does this affect?
Minor changes to the build system and the host library.
Testing Done
Since this affects mainly the build system, testing was building and verifying that CMake and compiler warnings were fixed.
Checklist
I have added tests to cover my changes, andall previous tests pass.MPM compat, noc_shell, specific RFNoC block, ...)