Skip to content

Commit

Permalink
Add GzGetPackageXmlVersion to GzCMake module
Browse files Browse the repository at this point in the history
This makes the gz_get_package_xml_version function
available automatically after finding gz-cmake.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Oct 23, 2024
1 parent 75c9a20 commit 837c21a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions cmake/GzCMake.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ include(GzPackaging)
include(GzCreateDocs)
include(GzSetCompilerFlags)
include(GzConfigureBuild)
include(GzGetPackageXmlVersion)
include(GzImportTarget)
include(GzPkgConfig)
include(GzSanitizers)
Expand Down
1 change: 0 additions & 1 deletion examples/version_from_package_xml/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)

find_package(gz-cmake4 REQUIRED)
include(GzGetPackageXmlVersion)
gz_get_package_xml_version(${CMAKE_SOURCE_DIR}/package.xml PACKAGE_XML)

message(STATUS "PACKAGE_XML_VERSION ${PACKAGE_XML_VERSION}")
Expand Down

0 comments on commit 837c21a

Please sign in to comment.