diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2013-12-24 11:44:43 +0600 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-12-24 10:00:08 +0400 |
commit | 52da76e41200bb2f9f09cf54960e3fcd1d771b82 (patch) | |
tree | 4ea1bcecbc1871f6b5b703d2fce3744269038390 | |
parent | 3fc000aa67ee38002ec97419a760f23cccd87210 (diff) | |
download | accel-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>
-rw-r--r-- | crypto/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 6df9fa7..3e24a64 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) |