diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 35f548fd..affd91ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,17 +69,17 @@ IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git) FIND_PACKAGE(Git) IF(GIT_FOUND) EXECUTE_PROCESS( - COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD - WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" - OUTPUT_VARIABLE "AMUNMT_BUILD_VERSION" - ERROR_QUIET - OUTPUT_STRIP_TRAILING_WHITESPACE) + COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" + OUTPUT_VARIABLE "AMUNMT_BUILD_VERSION" + ERROR_QUIET + OUTPUT_STRIP_TRAILING_WHITESPACE) MESSAGE( STATUS "Git version: ${AMUNMT_BUILD_VERSION}" ) ELSE(GIT_FOUND) SET(AMUNMT_BUILD_VERSION 0) ENDIF(GIT_FOUND) -add_definitions(-DAMUNMT_BUILD_VERSION=${AMUNMT_BUILD_VERSION}) ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git) +SET(GIT_SHA1 ${AMUNMT_BUILD_VERSION}) include_directories(${amunmt_SOURCE_DIR}/src) add_subdirectory(src) |