Module: sems Branch: master Commit: 55cf0a1932a96c678782ea1dc274fcee498651d8 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=55cf0a1932a96c678782ea1dc274fcee498651d8
Author: Peter Lemenkov <[email protected]> Committer: Peter Lemenkov <[email protected]> Date: Sat Oct 2 22:01:43 2010 +0400 Simplify checking whether we're buinding devel version or not Signed-off-by: Peter Lemenkov <[email protected]> --- CMakeLists.txt | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a6ff425..f6f8c86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,14 +16,14 @@ SET(SEMS_MINOR_VERSION 3) SET(SEMS_BUILD_VERSION 0) SET(SEMS_EXTRA_VERSION dev) -FIND_PATH(IS_DEVEL ".git" PATHS "${CMAKE_SOURCE_DIR}") -IF(IS_DEVEL) +IF(EXISTS ${CMAKE_SOURCE_DIR}/.git) SET(SEMS_VERSION "${SEMS_MAJOR_VERSION}.${SEMS_MINOR_VERSION}.${SEMS_BUILD_VERSION}-${SEMS_EXTRA_VERSION}") -ELSE(IS_DEVEL) +ELSE(EXISTS ${CMAKE_SOURCE_DIR}/.git) SET(SEMS_VERSION "${SEMS_MAJOR_VERSION}.${SEMS_MINOR_VERSION}.${SEMS_BUILD_VERSION}") -ENDIF(IS_DEVEL) +ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/.git) + MESSAGE(STATUS "Configuring ${CMAKE_PROJECT_NAME} v. ${SEMS_VERSION}") IF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE) _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
