Skip to content

Commit df6c3ea

Browse files
authored
build: Improve error message about mismatching git tags (#5205)
This message is triggered by the check that the tag of an auto-build dependency matches the SHA hash we use as a cross-check. This patch is just amending the error message to reveal the way to override the check, so people (like me) don't have to go hunting for it if they are purposely trying to build from a nonstandard commit of a dependency. Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent 1706f9a commit df6c3ea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/cmake/dependency_utils.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,8 @@ macro (build_dependency_with_cmake pkgname)
680680
message (FATAL_ERROR
681681
"${pkgname}: Tag ${_pkg_GIT_TAG} resolved to commit "
682682
"${_pkg_actual_commit}, but expected ${_pkg_GIT_COMMIT}. "
683-
"This may indicate the tag was tampered with or moved.")
683+
"This may indicate the tag was tampered with or moved. "
684+
"Setting ${PROJECT_NAME}_DEPENDENCY_BUILD_ALLOW_UNVERIFIED_TAGS=ON will disable this check.")
684685
endif ()
685686
elseif (NOT "${_pkg_GIT_COMMIT}" STREQUAL "")
686687
# Only commit hash specified: checkout that commit directly.

0 commit comments

Comments
 (0)