Skip to content

Commit

Permalink
Added check for failure to define VERSION_SET
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigHutchinson committed Dec 9, 2022
1 parent 2e0d5d3 commit ae5de8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMake/Version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ else()
endif()

if ( NOT _VERSION_NOT_GIT_REPO )
if ( ${VERSION_H_GENERATED} )
if ( NOT VERSION_SET )
message(CHECK_FAIL "Version.cmake failed - VERSION_SET==false")
elseif ( ${VERSION_H_GENERATED} )
message(CHECK_PASS "${VERSION_FULL} [${VERSION_SEMANTIC}] {Generated}")
elseif(EXISTS ${VERSION_H})
message(CHECK_PASS "Using pre-defined '${VERSION_H}'")
Expand Down

0 comments on commit ae5de8d

Please sign in to comment.