summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2013-12-24 11:44:43 +0600
committerDmitry Kozlov <xeb@mail.ru>2013-12-24 10:00:08 +0400
commit52da76e41200bb2f9f09cf54960e3fcd1d771b82 (patch)
tree4ea1bcecbc1871f6b5b703d2fce3744269038390 /crypto
parent3fc000aa67ee38002ec97419a760f23cccd87210 (diff)
downloadaccel-ppp-52da76e41200bb2f9f09cf54960e3fcd1d771b82.tar.gz
accel-ppp-52da76e41200bb2f9f09cf54960e3fcd1d771b82.zip
crypto: don't build/install empty library if not used
Signed-off-by: Vladislav Grishenko <themiron@mail.ru>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index 6df9fa73..3e24a64e 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -1,5 +1,7 @@
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
+IF (CRYPTO STREQUAL INTERNAL OR CRYPTO STREQUAL TOMCRYPT)
+
SET(sources crypto.c)
IF (CRYPTO STREQUAL INTERNAL)
@@ -19,3 +21,5 @@ IF (CRYPTO STREQUAL TOMCRYPT)
ENDIF(CRYPTO STREQUAL TOMCRYPT)
INSTALL(TARGETS internal-crypto LIBRARY DESTINATION lib${LIB_SUFFIX}/accel-ppp )
+
+ENDIF(CRYPTO STREQUAL INTERNAL OR CRYPTO STREQUAL TOMCRYPT)