From c73c558d1fc11e83d35d8cfb34036fbd0bf51582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Tue, 28 Jan 2014 22:41:11 -0500 Subject: [PATCH] winpr-hash: fix building against openssl in static mode --- winpr/tools/hash/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/winpr/tools/hash/CMakeLists.txt b/winpr/tools/hash/CMakeLists.txt index 3ede0e0b9..e9b307173 100644 --- a/winpr/tools/hash/CMakeLists.txt +++ b/winpr/tools/hash/CMakeLists.txt @@ -18,11 +18,18 @@ set(MODULE_NAME "winpr-hash") set(MODULE_PREFIX "WINPR_TOOLS_HASH") +include_directories(${ZLIB_INCLUDE_DIRS}) +include_directories(${OPENSSL_INCLUDE_DIR}) + set(${MODULE_PREFIX}_SRCS hash.c) add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS}) +set(${MODULE_PREFIX}_LIBS + ${ZLIB_LIBRARIES} + ${OPENSSL_LIBRARIES}) + set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS MONOLITHIC ${MONOLITHIC_BUILD} MODULE winpr