From a2ca4fdf6c6eee2d229c8cb7770f37accd467d93 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 2 Jan 2009 17:39:26 +0100 Subject: Make it possible to compile plug-in again without eurephiadm enabled --- plugin/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt index 8a1b43f..bf0202d 100644 --- a/plugin/CMakeLists.txt +++ b/plugin/CMakeLists.txt @@ -1,4 +1,4 @@ -PROJECT(eurephia-auth C) +PROJECT(eurephia-plugin C) cmake_minimum_required(VERSION 2.6) SET(eurephia_auth_SRC ../common/certinfo.c @@ -21,6 +21,10 @@ IF(FW_IPTABLES) SET(subdirs firewall/iptables) ENDIF(FW_IPTABLES) +IF(ENABLE_EUREPHIADM) + REMOVE_DEFINITIONS(-DENABLE_EUREPHIADM) +ENDIF(ENABLE_EUREPHIADM) + CHECK_LIBRARY_EXISTS(rt sem_wait "" HAVE_RT_SEM_WAIT) CHECK_LIBRARY_EXISTS(rt sem_timedwait "" HAVE_RT_SEM_TIMEDWAIT) CHECK_LIBRARY_EXISTS(rt sem_post "" HAVE_RT_SEM_POST) -- cgit