diff options
author | Craig Scott <craig.scott@crascit.com> | 2021-03-24 07:21:38 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2021-03-26 20:44:00 (GMT) |
commit | a43783a08d621153daec4511474f939484b2b952 (patch) | |
tree | a0ea636d3f0b414217644ac5b0cd98916c9e8745 /Modules | |
parent | f536e6f3fb588e2cb8ab86a1f4eab75db011cefa (diff) | |
download | CMake-a43783a08d621153daec4511474f939484b2b952.zip CMake-a43783a08d621153daec4511474f939484b2b952.tar.gz CMake-a43783a08d621153daec4511474f939484b2b952.tar.bz2 |
CPackIFW: Fix parsing of name and version in component DEPENDS
The DEPENDS or DEPENDENCIES arguments in a call to
cpack_ifw_configure_component() or cpack_ifw_configure_component_group()
specify a name and optionally a version constraint as a single string.
QtIFW also allows a colon (requires QtIFW 3.1 or later) or a hyphen to
separate the name and version. The version may optionally contain a
leading operator, with = being assumed when no operator is present.
The previous code was not handling : as a separator at all and was
erroneously dropping the version part when no operator was given.
Fix both of those non-conforming behaviors and also warn if trying
to use a hyphen in a name with a QtIFW version that isn't recent enough
to support it.
Fixes: #21697
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CPackIFW.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/CPackIFW.cmake b/Modules/CPackIFW.cmake index d57cf18..2087a51 100644 --- a/Modules/CPackIFW.cmake +++ b/Modules/CPackIFW.cmake @@ -125,6 +125,11 @@ The module defines the following commands: list of dependency component or component group identifiers in QtIFW style. + .. versionadded:: 3.21 + + Component or group names listed as dependencies may contain hyphens. + This requires QtIFW 3.1 or later. + ``AUTO_DEPEND_ON`` .. versionadded:: 3.8 @@ -260,6 +265,11 @@ The module defines the following commands: list of dependency component or component group identifiers in QtIFW style. + .. versionadded:: 3.21 + + Component or group names listed as dependencies may contain hyphens. + This requires QtIFW 3.1 or later. + ``AUTO_DEPEND_ON`` .. versionadded:: 3.8 |