Skip to content

Commit

Permalink
Only set OPENSSL_ROOT_DIR if not defined (#150)
Browse files Browse the repository at this point in the history
* Only set OPENSSL_ROOT_DIR if not defined

* Simpler
  • Loading branch information
xhochy authored and proller committed Jan 10, 2019
1 parent 1676610 commit a74edb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/find_ssl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endif ()

if (NOT USE_INTERNAL_SSL_LIBRARY)
if (APPLE)
set (OPENSSL_ROOT_DIR "/usr/local/opt/openssl")
set (OPENSSL_ROOT_DIR "/usr/local/opt/openssl" CACHE INTERNAL "")
# https://rt.openssl.org/Ticket/Display.html?user=guest&pass=guest&id=2232
if (USE_STATIC_LIBRARIES)
message(WARNING "Disable USE_STATIC_LIBRARIES if you have linking problems with OpenSSL on MacOS")
Expand Down

0 comments on commit a74edb9

Please sign in to comment.