From 9f787777b59b216c241986bb068a5ee7445787d9 Mon Sep 17 00:00:00 2001 From: Jonathan Rubenstein Date: Tue, 8 Dec 2020 09:14:47 -0500 Subject: [PATCH] [cmake] ensure the version is flagged as dirty in all cases A developer could have changes in the index which would not add the "+" symbol. --- version.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.cmake b/version.cmake index 1ce4071f..4bccd332 100644 --- a/version.cmake +++ b/version.cmake @@ -6,7 +6,7 @@ execute_process( if (NOT "${GIT_REV}" STREQUAL "") execute_process( - COMMAND bash -c "git diff --quiet --exit-code || echo +" + COMMAND bash -c "git diff --quiet --exit-code && git diff --cached --quiet --exit-code || echo +" WORKING_DIRECTORY "${PROJECT_TOP}" OUTPUT_VARIABLE GIT_DIFF) else()