mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +01:00
cmake: clean up definition settings
This commit is contained in:
parent
28f1e9842c
commit
f8ae8cb820
@ -25,11 +25,8 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
|
|||||||
)
|
)
|
||||||
endif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
|
endif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
|
||||||
|
|
||||||
SET(VERSION_GIT_COMMIT_FLAG "-DSWAY_GIT_VERSION=\"g${GIT_COMMIT_HASH}\"")
|
add_definitions("-DSWAY_GIT_VERSION=\"g${GIT_COMMIT_HASH}\"")
|
||||||
add_definitions("${VERSION_GIT_COMMIT_FLAG}")
|
add_definitions("-DSWAY_GIT_BRANCH=\"${GIT_BRANCH}\"")
|
||||||
|
|
||||||
SET(VERSION_GIT_BRANCH_FLAG "-DSWAY_GIT_BRANCH=\"${GIT_BRANCH}\"")
|
|
||||||
add_definitions("${VERSION_GIT_BRANCH_FLAG}")
|
|
||||||
|
|
||||||
string(TIMESTAMP CURRENT_DATE "%Y-%m-%d" UTC)
|
string(TIMESTAMP CURRENT_DATE "%Y-%m-%d" UTC)
|
||||||
add_definitions("-DSWAY_VERSION_DATE=${CURRENT_DATE}")
|
add_definitions("-DSWAY_VERSION_DATE=${CURRENT_DATE}")
|
||||||
|
Loading…
Reference in New Issue
Block a user