summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-07-15 15:44:19 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-07-15 15:44:19 +0200
commitb94247813bfdcb95b2b3cde9a7d27f90254f2a2f (patch)
tree144f4aa44ff5c8ac45cfe56ec4c27c0a41471712
parent11a31db2d5bcc158bb8902e74f192dbc82827f53 (diff)
downloadbiboumi-b94247813bfdcb95b2b3cde9a7d27f90254f2a2f.tar.gz
biboumi-b94247813bfdcb95b2b3cde9a7d27f90254f2a2f.tar.bz2
biboumi-b94247813bfdcb95b2b3cde9a7d27f90254f2a2f.tar.xz
biboumi-b94247813bfdcb95b2b3cde9a7d27f90254f2a2f.zip
Provide WITHOUT_BOTAN and WITHOUT_SYSTEMD cmake flags
Use them to build without linking to them, even if they are on your system
-rw-r--r--CMakeLists.txt8
-rw-r--r--INSTALL12
2 files changed, 17 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f68e7db..14c002c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,8 +21,12 @@ find_package(EXPAT REQUIRED)
find_package(Iconv REQUIRED)
find_package(Libuuid REQUIRED)
find_package(Libidn)
-find_package(SystemdDaemon)
-find_package(Botan)
+if(NOT WITHOUT_SYSTEMD)
+ find_package(SystemdDaemon)
+endif()
+if(NOT WITHOUT_BOTAN)
+ find_package(Botan)
+endif()
#
## Get the software version
diff --git a/INSTALL b/INSTALL
index 825f549..d77ef59 100644
--- a/INSTALL
+++ b/INSTALL
@@ -78,10 +78,20 @@ using the POLLER cmake option. Available values are:
EPOLL: use the Linux-specific epoll(7). This is the default on Linux.
POLL: use the standard poll(2). This is the default value on all non-Linux platforms.
-Example, configure the poller with cmake:
+Examples, configure the poller with cmake:
% cmake . -DPOLLER=EPOLL
+You can also decide not to use two of the optional dependencies, even if they are present on your system, for example if Botan is available but you do not want to use it, you can set the value of WITHOUT_BOTAN to 1, like this:
+
+% cmake . -DWITHOUT_BOTAN=1
+
+This way, the binary will not be linked with libotan at all (and all
+connection will then be made in clear text).
+You can also decide not to link with systemd, like this:
+
+% cmake . -DWITHOUT_SYSTEMD=1
+
==============
Build