Skip to content

Commit

Permalink
Throw error when version number in package.xml is not filled
Browse files Browse the repository at this point in the history
  • Loading branch information
boxanm committed May 18, 2024
1 parent 6b00584 commit f9c1f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if(VERSION_MATCH)
set(PROJECT_VERSION ${CMAKE_MATCH_1})
message(STATUS "Found package version: ${PROJECT_VERSION}")
else()
message(WARNING "Package version not found in package.xml")
message(SEND_ERROR "Package version not found in package.xml")
endif()

if (NOT CMAKE_BUILD_TYPE)
Expand Down

0 comments on commit f9c1f11

Please sign in to comment.