diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-10-30 16:19:33 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-10-30 16:19:44 +0400 |
commit | 286cbc87fff9344ff85db0efd54c41f619509c74 (patch) | |
tree | 6e356ee6a15835903b91ba869f7e953a7e5838c6 /CMakeLists.txt | |
parent | 68b7256c31e4efcb613854d73571edcca13fcd6e (diff) | |
download | accel-ppp-286cbc87fff9344ff85db0efd54c41f619509c74.tar.gz accel-ppp-286cbc87fff9344ff85db0efd54c41f619509c74.zip |
fix build with internal & tomcrypt crypto libraries
Signed-off-by: Vladislav Grishenko <themiron@mail.ru>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c0ec2a6..7d52511 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ project(accel-ppp C) include(cmake/cpack.cmake) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fvisibility=hidden -fno-strict-aliasing -D_GNU_SOURCE -fPIC -rdynamic") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fno-strict-aliasing -D_GNU_SOURCE -fPIC -rdynamic") IF (NOT DEFINED LIB_SUFFIX) EXECUTE_PROCESS( @@ -50,7 +50,8 @@ if (NOT BUILD_DRIVER_ONLY) set(crypto_lib crypto ssl) elseif (CRYPTO STREQUAL TOMCRYPT) add_definitions(-DCRYPTO_TOMCRYPT) - set(crypto_lib tomcrypt) + INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/crypto) + set(crypto_lib tomcrypt internal-crypto) elseif (CRYPTO STREQUAL INTERNAL) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/crypto) set(crypto_lib internal-crypto) |