summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2017-11-14 21:28:22 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2017-11-14 21:43:12 +0100
commit4c402ad8d7d38f00c2c3794675a0e99a03fca4be (patch)
treebc339742fc59c62e84980652d688180ccf582f94
parentac786a71dfdbd1a23be69ba4f2566b4f530da322 (diff)
downloadouroboros-4c402ad8d7d38f00c2c3794675a0e99a03fca4be.tar.gz
ouroboros-4c402ad8d7d38f00c2c3794675a0e99a03fca4be.zip
build: Set libraries for OpenSSL when not found
The build didn't reset the CMake variable for OPENSSL_LIBRARIES, causing bad input to the linker. This error showed up when trying to build on XUbuntu 17.10 without OpenSSL or libgrcypt installed. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
-rw-r--r--src/lib/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index 5617977b..1c5877df 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -105,6 +105,7 @@ endif ()
if (NOT HAVE_OPENSSL)
set(OPENSSL_INCLUDE_DIR "")
+ set(OPENSSL_LIBRARIES "")
endif ()
if (APPLE OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")