cmaize.utilities/split_version
- cmaize.utilities/split_version.cmaize_split_version(_sv_major _sv_minor _sv_patch _sv_tweak _sv_version)
Split a given version string into its components.
This function assumes that semantic versioning (`https://semver.org`__) is being used, as well as an additional, optional TWEAK component that CMake natively supports. Some return values may be blank if there are not four components to the version string.
- Parameters:
_sv_major (desc) – Returned first component of the version.
_sv_minor (desc) – Returned second component of the version.
_sv_patch (desc) – Returned third component of the version.
_sv_tweak (desc) – Returned fourth component of the version.
_sv_version (desc) – Version string to be separated into components.
- Returns:
The first component of the given version.
- Return type:
desc
- Returns:
The second component of the given version.
- Return type:
desc
- Returns:
The third component of the given version.
- Return type:
desc
- Returns:
The fourth component of the given version.
- Return type:
desc