Skip to content

Commit

Permalink
require semver verification for non-package builds too (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything authored Aug 21, 2023
1 parent 790863c commit 77dcb27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ endif()
option(DISABLE_SEMVER_VERIFICATION "Toggle SEMVER verification for BUILD_DIST_PACKAGES" OFF)
option(BUILD_DIST_PACKAGES "Build packages for distribution package managers" OFF)

# Require explicitly disabling SEMVER verification for building DIST packages.
if(NOT DISABLE_SEMVER_VERIFICATION AND BUILD_DIST_PACKAGES AND PROJECT_SEMVER VERSION_EQUAL "${DUMMY_SEMVER}")
# verify the semver unless DISABLE option is set
if((NOT DISABLE_SEMVER_VERIFICATION) AND PROJECT_SEMVER VERSION_EQUAL "${DUMMY_SEMVER}")
unset(GIT_VERSION CACHE)
unset(GIT_ERROR_CODE CACHE)
unset(PROJECT_SEMVER CACHE)
Expand Down

0 comments on commit 77dcb27

Please sign in to comment.