summaryrefslogtreecommitdiff
path: root/accel-pppd/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/CMakeLists.txt')
-rw-r--r--accel-pppd/CMakeLists.txt30
1 files changed, 1 insertions, 29 deletions
diff --git a/accel-pppd/CMakeLists.txt b/accel-pppd/CMakeLists.txt
index c843c8b..498294c 100644
--- a/accel-pppd/CMakeLists.txt
+++ b/accel-pppd/CMakeLists.txt
@@ -1,32 +1,4 @@
-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 AND NOT DEFINED IGNORE_GIT)
- EXECUTE_PROCESS(
- COMMAND git log --no-color
- COMMAND head -n1
- COMMAND awk "{print $2}"
- WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}
- OUTPUT_VARIABLE ACCEL_PPP_VERSION
- )
- STRING(STRIP ${ACCEL_PPP_VERSION} ACCEL_PPP_VERSION)
-ELSE (EXISTS ${CMAKE_HOME_DIRECTORY}/.git AND NOT DEFINED IGNORE_GIT)
- SET (ACCEL_PPP_VERSION 1.7.0)
-ENDIF (EXISTS ${CMAKE_HOME_DIRECTORY}/.git AND NOT DEFINED IGNORE_GIT)
-
-ADD_DEFINITIONS(-DACCEL_PPP_VERSION="${ACCEL_PPP_VERSION}")
-
-IF (NOT DEFINED LIB_SUFFIX)
- EXECUTE_PROCESS(
- COMMAND uname -m
- COMMAND tr -d '\n'
- OUTPUT_VARIABLE ARCH
- )
- message(STATUS "'" ${ARCH} "'")
- IF (ARCH STREQUAL x86_64)
- SET(LIB_SUFFIX 64)
- ENDIF (ARCH STREQUAL x86_64)
-ENDIF (NOT DEFINED LIB_SUFFIX)
-
+ADD_DEFINITIONS(-DPTHREAD_SPINLOCK)
INCLUDE_DIRECTORIES(include)