summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-10-30 11:47:01 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-10-30 11:47:01 +0900
commitd54efa8cb872b6ecc7657dd215efeeabf04821e1 (patch)
treed177cc3a032282804cbcf4c3d06dea10cfce59b0 /ConfigureChecks.cmake
parentc0b1f3384ccc4dbf9311e97829f9218cf944fac8 (diff)
downloaduniversal-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.cmake8
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(