mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01:00
cmake: use string(TIMESTAMP)
This commit is contained in:
parent
f002baed7a
commit
c8599dba02
1 changed files with 2 additions and 8 deletions
|
@ -30,14 +30,8 @@ add_definitions("${VERSION_GIT_COMMIT_FLAG}")
|
||||||
SET(VERSION_GIT_BRANCH_FLAG "-DSWAY_GIT_BRANCH=\"${GIT_BRANCH}\"")
|
SET(VERSION_GIT_BRANCH_FLAG "-DSWAY_GIT_BRANCH=\"${GIT_BRANCH}\"")
|
||||||
add_definitions("${VERSION_GIT_BRANCH_FLAG}")
|
add_definitions("${VERSION_GIT_BRANCH_FLAG}")
|
||||||
|
|
||||||
execute_process(
|
string(TIMESTAMP CURRENT_DATE "%Y-%m-%d" UTC)
|
||||||
COMMAND date +"%Y-%m-%d"
|
add_definitions("-DSWAY_VERSION_DATE=${CURRENT_DATE}")
|
||||||
OUTPUT_VARIABLE CURRENT_DATE
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(VERSION_DATE_FLAG "-DSWAY_VERSION_DATE=${CURRENT_DATE}")
|
|
||||||
add_definitions("${VERSION_DATE_FLAG}")
|
|
||||||
|
|
||||||
find_package(XKBCommon REQUIRED)
|
find_package(XKBCommon REQUIRED)
|
||||||
find_package(WLC REQUIRED)
|
find_package(WLC REQUIRED)
|
||||||
|
|
Loading…
Reference in a new issue