mirror of
https://github.com/monero-project/monero.git
synced 2024-12-24 12:39:59 +00:00
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).
This commit is contained in:
parent
29497f7920
commit
4b228dd356
1 changed files with 1 additions and 2 deletions
|
@ -49,6 +49,5 @@ target_link_libraries(epee
|
||||||
easylogging
|
easylogging
|
||||||
${Boost_FILESYSTEM_LIBRARY}
|
${Boost_FILESYSTEM_LIBRARY}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
ssl
|
${OPENSSL_LIBRARIES}
|
||||||
crypto
|
|
||||||
${EXTRA_LIBRARIES})
|
${EXTRA_LIBRARIES})
|
||||||
|
|
Loading…
Reference in a new issue