aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-07-13 14:03:25 +0200
committerAndreas Schneider <asn@cynapses.org>2010-08-03 18:13:59 +0200
commit42519db55d74abd9bb4b2b4c670633fec21407a8 (patch)
tree4e908370db6e53a5be30818bf4ef99b4f779ff97
parent019cb77b84542613df02e8c7cccb48aad4f0a988 (diff)
downloadlibssh-42519db55d74abd9bb4b2b4c670633fec21407a8.tar.gz
libssh-42519db55d74abd9bb4b2b4c670633fec21407a8.tar.xz
libssh-42519db55d74abd9bb4b2b4c670633fec21407a8.zip
build: Set a default openssl search path for windows.
-rw-r--r--cmake/Modules/FindOpenSSL.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/Modules/FindOpenSSL.cmake b/cmake/Modules/FindOpenSSL.cmake
index 53e83eac..b024ff46 100644
--- a/cmake/Modules/FindOpenSSL.cmake
+++ b/cmake/Modules/FindOpenSSL.cmake
@@ -18,6 +18,10 @@ if (OPENSSL_LIBRARIES AND OPENSSL_INCLUDE_DIRS)
# in cache already
set(OPENSSL_FOUND TRUE)
else (OPENSSL_LIBRARIES AND OPENSSL_INCLUDE_DIRS)
+ if (WIN32)
+ set(_OPENSSL_DIR $ENV{PROGRAMFILES}/OpenSSL)
+ endif (WIN32)
+
find_package(PkgConfig)
if (PKG_CONFIG_FOUND)
pkg_check_modules(_OPENSSL openssl)