[cmake] Migrate more modules to TARGET usage #23748
Merged
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.
Description
Migrate more modules to TARGET usage
Motivation and context
Migrate more modules to target usage.
@sundermann @wsnipex of note for webOS is the commit to "simplify" FindWaylandProtocolsWebOS. As the pc file isnt from an upstream source, i felt its just easier to drop it. We are only looking for the xml files, so a simple find_path should be fine. I contemplated dropping the find module completely and moving the find_path to the ExtraTargets.cmake file, but i can see the argument for it being a dependency to check/find, so at least you get output in the configure step. Let me know if you would prefer it the way it was, but i dont see a point to make it a full TARGET style find module.
How has this been tested?
Build aarch64 macos and shoehorning webos find checks.
What is the effect on users?
N/A
Screenshots (if appropriate):
Types of change
Checklist: