Skip to content

Commit

Permalink
update cmake comments
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Oct 28, 2024
1 parent 837c21a commit 06a7c29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/GzGetPackageXmlVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ function(gz_get_package_xml_version package_xml_path version_var_prefix)
# split version number into list of three numbers
string(REPLACE "." ";" PACKAGE_XML_version_list ${PACKAGE_XML_version})

# Return version variables
# Create variables for major, minor, and patch version numbers
list(GET PACKAGE_XML_version_list 0 PACKAGE_XML_version_major)
list(GET PACKAGE_XML_version_list 1 PACKAGE_XML_version_minor)
list(GET PACKAGE_XML_version_list 2 PACKAGE_XML_version_patch)

# Return the list that has been created
# Return variables for the full version number as well as major, minor, and patch version numbers
set(${version_var_prefix}_VERSION ${PACKAGE_XML_version} PARENT_SCOPE)
set(${version_var_prefix}_VERSION_MAJOR ${PACKAGE_XML_version_major} PARENT_SCOPE)
set(${version_var_prefix}_VERSION_MINOR ${PACKAGE_XML_version_minor} PARENT_SCOPE)
Expand Down

0 comments on commit 06a7c29

Please sign in to comment.