diff options
author | Aki <please@ignore.pl> | 2023-02-15 00:33:51 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-02-15 00:33:51 +0100 |
commit | b3a579d8e2d8bee77cf43b4e9f993e10576af61f (patch) | |
tree | 49663a2afb6bb5cfb59cb641bcb705ed36a564bd | |
parent | dc0cc293b7b8efed67a0a550237dce38f33ff37d (diff) | |
download | kurator-b3a579d8e2d8bee77cf43b4e9f993e10576af61f.zip kurator-b3a579d8e2d8bee77cf43b4e9f993e10576af61f.tar.gz kurator-b3a579d8e2d8bee77cf43b4e9f993e10576af61f.tar.bz2 |
Version hash now has asterix if dirty repo was used to build
-rw-r--r-- | cmake/modules/generate_version_file.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/modules/generate_version_file.cmake b/cmake/modules/generate_version_file.cmake index 4479855..bbe34c6 100644 --- a/cmake/modules/generate_version_file.cmake +++ b/cmake/modules/generate_version_file.cmake @@ -4,8 +4,16 @@ execute_process( OUTPUT_VARIABLE PARSE_OUTPUT OUTPUT_STRIP_TRAILING_WHITESPACE ) +execute_process( + COMMAND git status --porcelain + OUTPUT_VARIABLE STATUS_OUTPUT + OUTPUT_STRIP_TRAILING_WHITESPACE +) if(NOT PARSE_RESULT) set(HASH "${PARSE_OUTPUT}") + if(NOT ${STATUS_OUTPUT}) + set(HASH "${HASH}*") + endif() else() set(HASH "NOTFOUND") endif() |