summaryrefslogtreecommitdiff
path: root/accel-pppd/CMakeLists.txt
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2011-05-30 16:21:30 +0400
committerKozlov Dmitry <dima@server>2011-05-30 16:21:30 +0400
commit4497c1bae58e5920a250df95abb959d4b3d980b4 (patch)
tree2d33ee7b4ae7dd1ba59be80220db3232ea1f736c /accel-pppd/CMakeLists.txt
parent6dd6ad03bb7d9a9b687f2c3468dfdc2d102a0dda (diff)
downloadaccel-ppp-4497c1bae58e5920a250df95abb959d4b3d980b4.tar.gz
accel-ppp-4497c1bae58e5920a250df95abb959d4b3d980b4.zip
1.3.6 release
Diffstat (limited to 'accel-pppd/CMakeLists.txt')
-rw-r--r--accel-pppd/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/accel-pppd/CMakeLists.txt b/accel-pppd/CMakeLists.txt
index 7b53d920..c9d05f92 100644
--- a/accel-pppd/CMakeLists.txt
+++ b/accel-pppd/CMakeLists.txt
@@ -14,7 +14,7 @@ ENDIF (NOT HAVE_SSL)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fvisibility=hidden -fno-strict-aliasing -D_GNU_SOURCE -DPTHREAD_SPINLOCK -fPIC")
-IF (EXISTS ${CMAKE_HOME_DIRECTORY}/.git)
+IF (EXISTS ${CMAKE_HOME_DIRECTORY}/.git AND NOT DEFINED IGNORE_GIT)
EXECUTE_PROCESS(
COMMAND git log
COMMAND head -n1
@@ -23,9 +23,9 @@ IF (EXISTS ${CMAKE_HOME_DIRECTORY}/.git)
OUTPUT_VARIABLE ACCEL_PPP_VERSION
)
STRING(STRIP ${ACCEL_PPP_VERSION} ACCEL_PPP_VERSION)
-ELSE (EXISTS ${CMAKE_HOME_DIRECTORY}/.git)
- SET (ACCEL_PPP_VERSION 1.3.5)
-ENDIF (EXISTS ${CMAKE_HOME_DIRECTORY}/.git)
+ELSE (EXISTS ${CMAKE_HOME_DIRECTORY}/.git AND NOT DEFINED IGNORE_GIT)
+ SET (ACCEL_PPP_VERSION 1.3.6)
+ENDIF (EXISTS ${CMAKE_HOME_DIRECTORY}/.git AND NOT DEFINED IGNORE_GIT)
ADD_DEFINITIONS(-DACCEL_PPP_VERSION="${ACCEL_PPP_VERSION}")