diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-10-30 11:47:01 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-10-30 11:47:01 +0900 |
commit | d54efa8cb872b6ecc7657dd215efeeabf04821e1 (patch) | |
tree | d177cc3a032282804cbcf4c3d06dea10cfce59b0 /ConfigureChecks.cmake | |
parent | c0b1f3384ccc4dbf9311e97829f9218cf944fac8 (diff) | |
download | universal-indent-gui-tqt-d54efa8cb872b6ecc7657dd215efeeabf04821e1.tar.gz universal-indent-gui-tqt-d54efa8cb872b6ecc7657dd215efeeabf04821e1.zip |
Add git hash to program version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 253fd69..1ad873a 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -25,6 +25,14 @@ if( WITH_GCC_VISIBILITY ) endif( WITH_GCC_VISIBILITY ) +##### get commit hash information +execute_process( + COMMAND git describe --abbrev=8 --dirty --always + OUTPUT_VARIABLE GIT_HASH + OUTPUT_STRIP_TRAILING_WHITESPACE +) + + ##### check for stream support check_cxx_source_compiles( |