From f8ae8cb820eecff1db514e15a354c03648b85f34 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 12 Nov 2015 21:37:18 -0500 Subject: [PATCH] cmake: clean up definition settings --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 000010a2a..236a36673 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,11 +25,8 @@ if(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("${VERSION_GIT_COMMIT_FLAG}") - -SET(VERSION_GIT_BRANCH_FLAG "-DSWAY_GIT_BRANCH=\"${GIT_BRANCH}\"") -add_definitions("${VERSION_GIT_BRANCH_FLAG}") +add_definitions("-DSWAY_GIT_VERSION=\"g${GIT_COMMIT_HASH}\"") +add_definitions("-DSWAY_GIT_BRANCH=\"${GIT_BRANCH}\"") string(TIMESTAMP CURRENT_DATE "%Y-%m-%d" UTC) add_definitions("-DSWAY_VERSION_DATE=${CURRENT_DATE}")