diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2015-11-12 21:28:41 -0500 |
---|---|---|
committer | Ben Boeckel <mathstuf@gmail.com> | 2015-11-12 21:56:14 -0500 |
commit | c8599dba0247929ae0d48a0b41486f45321b4190 (patch) | |
tree | 19075d27c5e0fa5f875a3672dadd161d62b5bf86 | |
parent | f002baed7ad74cceb5d4478f29310d537dfff6dc (diff) |
cmake: use string(TIMESTAMP)
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f7d747e..528e6404 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,14 +30,8 @@ add_definitions("${VERSION_GIT_COMMIT_FLAG}") SET(VERSION_GIT_BRANCH_FLAG "-DSWAY_GIT_BRANCH=\"${GIT_BRANCH}\"") add_definitions("${VERSION_GIT_BRANCH_FLAG}") -execute_process( - COMMAND date +"%Y-%m-%d" - OUTPUT_VARIABLE CURRENT_DATE - OUTPUT_STRIP_TRAILING_WHITESPACE -) - -SET(VERSION_DATE_FLAG "-DSWAY_VERSION_DATE=${CURRENT_DATE}") -add_definitions("${VERSION_DATE_FLAG}") +string(TIMESTAMP CURRENT_DATE "%Y-%m-%d" UTC) +add_definitions("-DSWAY_VERSION_DATE=${CURRENT_DATE}") find_package(XKBCommon REQUIRED) find_package(WLC REQUIRED) |