aboutsummaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-04-27 14:28:40 +0100
committervaxerski <[email protected]>2023-04-27 14:28:40 +0100
commit5ce76cd0b01fcdcb8436b6ae1447fb17c17c13a5 (patch)
tree90ec4be50f9923cc88af17b96cf0416c22a53654 /CMakeLists.txt
parent49f9ca06c7c023460c613d76b2519c5abe7b8cbe (diff)
downloadHyprland-5ce76cd0b01fcdcb8436b6ae1447fb17c17c13a5.tar.gz
Hyprland-5ce76cd0b01fcdcb8436b6ae1447fb17c17c13a5.zip
internal: add tag to version, send hash in release ci
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index edaa1d78..ac07d6d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,6 +43,12 @@ execute_process(
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_DIRTY
OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+execute_process(
+ COMMAND sh -c "git describe --tags"
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
+ OUTPUT_VARIABLE GIT_TAG
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
#
#
@@ -134,7 +140,8 @@ target_compile_definitions(Hyprland
"GIT_COMMIT_HASH=\"${GIT_COMMIT_HASH}\""
"GIT_BRANCH=\"${GIT_BRANCH}\""
"GIT_COMMIT_MESSAGE=\"${GIT_COMMIT_MESSAGE}\""
- "GIT_DIRTY=\"${GIT_DIRTY}\"")
+ "GIT_DIRTY=\"${GIT_DIRTY}\""
+ "GIT_TAG=\"${GIT_TAG}\"")
target_link_libraries(Hyprland rt)