diff options
author | redfish <redfish@galactica.pw> | 2017-10-16 02:43:16 +0000 |
---|---|---|
committer | redfish <redfish@galactica.pw> | 2017-10-17 16:13:07 -0400 |
commit | 4b228dd356ddc0b5b4ae4fc127d20414b7a5e8c5 (patch) | |
tree | f6e1afe53fb61efd0d5de0b5124d38069da156ba /contrib/epee/src/CMakeLists.txt | |
parent | epee: use boost type for SSL error code (diff) | |
download | monero-4b228dd356ddc0b5b4ae4fc127d20414b7a5e8c5.tar.xz |
cmake: epee: use var from FindOpenSSL.cmake
This fixes linking when path to openssl
is defined manually:
cmake -DOPENSSL_ROOT_DIR='/usr/include/openssl-1.0;/usr/lib/openssl-1.0' ...
This is useful for building with OpenSSL v1.0
when default system installation is v1.1.
The linking error is undefined SSL_load_error_strings symbol.
This is due to -L /usr/lib/openssl-1.0 not making it onto
the linkline (so -lssl pulls in the default system openssl).
Diffstat (limited to 'contrib/epee/src/CMakeLists.txt')
-rw-r--r-- | contrib/epee/src/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/epee/src/CMakeLists.txt b/contrib/epee/src/CMakeLists.txt index af3c6ca5f..3b41f415e 100644 --- a/contrib/epee/src/CMakeLists.txt +++ b/contrib/epee/src/CMakeLists.txt @@ -49,6 +49,5 @@ target_link_libraries(epee easylogging ${Boost_FILESYSTEM_LIBRARY} PRIVATE - ssl - crypto + ${OPENSSL_LIBRARIES} ${EXTRA_LIBRARIES}) |