aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-02-07 14:34:13 +0100
committerSven Gothel <[email protected]>2022-02-07 14:34:13 +0100
commit4826eae38ccfe48d19a3f2993e82bb0c903328f1 (patch)
treecbe7ccd4aa14afe2a4cd7e5d9750d047818ffbc9
parentb3981ff3440a7dd1ae93d712a3153063160ae817 (diff)
Fix GIT_WORKDIR_DIRTY parsing, "CLEAN" indicates a clean git working directory
-rw-r--r--JaulibSetup.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/JaulibSetup.cmake b/JaulibSetup.cmake
index fb2591d..477ce46 100644
--- a/JaulibSetup.cmake
+++ b/JaulibSetup.cmake
@@ -156,7 +156,7 @@ endif()
if ("${VERSION_SHA1_SHORT}" MATCHES "^v.*")
set (VERSION_SHA1_SHORT "")
endif()
-if ("${GIT_WORKDIR_DIRTY}" STREQUAL "")
+if ("${GIT_WORKDIR_DIRTY}" STREQUAL "CLEAN")
set (VERSION_GIT_DIRTY_SUFFIX "")
else()
set (VERSION_GIT_DIRTY_SUFFIX "-dirty")
@@ -169,7 +169,7 @@ endif()
set (VERSION_SHORT "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
set (VERSION_API "${VERSION_MAJOR}.${VERSION_MINOR}")
-if ("${GIT_WORKDIR_DIRTY}" STREQUAL "")
+if ("${GIT_WORKDIR_DIRTY}" STREQUAL "CLEAN")
message (STATUS "${PROJECT_NAME} git repo is CLEAN")
else()
message (STATUS "${PROJECT_NAME} git repo is DIRTY")