-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: Pass along the version in FindWrap cmake scripts
The QtFindWrapHelper include used in FindWrap scripts can choose to call find_package() on one of two packages. The packages might set a VERSION variable. We should set the same version for the FindWrap package as well. There are two sources where the version will be queried from. First from the underlying ${package_name}_VERSION variable. And if that is empty, from a property that is set by qt_find_package() The former might be empty because find_package might be called from a function instead of a macro, which is the case for any find_package call in configure.cmake files that get loaded by the qt_feature_evaluate_features function. Thus we need the indirection via the property that qt_find_package will set. Change-Id: I57fd818cb9dedf5e27a6d805e3d817d8d18be36d Reviewed-by: Alexey Edelev <[email protected]>
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
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
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