diff options
Diffstat (limited to 'cmake/modules/generate_version_file.cmake')
-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() |