From 75c6816274fa18e14146ac016c7e70160e3c9e2b Mon Sep 17 00:00:00 2001 From: christian mueller Date: Tue, 20 Mar 2012 15:59:19 +0100 Subject: * enhanced documentation * [GAM-39] fixed bug in build system --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f0e036..0edb882 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,12 +22,12 @@ execute_process(COMMAND git describe --tags WORKING_DIRECTORY ${CMAKE_CURRENT_SO OUTPUT_VARIABLE DAEMONVERSION OUTPUT_STRIP_TRAILING_WHITESPACE) -IF (DAEMON_ERROR) +IF (NOT DAEMONVERSION) SET( DAEMONVERSION "homebrew-${CMAKE_SOURCE_DIR}" ) -ELSE (DAEMON_ERROR) +ELSE (NOT DAEMONVERSION) STRING(REGEX REPLACE "(-)[^-]+$" "" DAEMONVERSION ${DAEMONVERSION}) STRING(REGEX REPLACE "-" "." DAEMONVERSION ${DAEMONVERSION}) -ENDIF(DAEMON_ERROR) +ENDIF(NOT DAEMONVERSION) message(STATUS "Build Version ${DAEMONVERSION}") -- cgit v1.2.1