aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-07-13 14:03:25 +0200
committerAndreas Schneider <asn@cynapses.org>2010-07-13 14:03:25 +0200
commit82d1627cadaf38908da703e08f62ea8cb8e392db (patch)
treeedd3af50f9b2528621344229add77ee8c3f260ce
parent641e89b14a756b415000bdba8f61d2ab3ca5d3e1 (diff)
downloadlibssh-82d1627cadaf38908da703e08f62ea8cb8e392db.tar.gz
libssh-82d1627cadaf38908da703e08f62ea8cb8e392db.tar.xz
libssh-82d1627cadaf38908da703e08f62ea8cb8e392db.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 91bded7b..4faeeb94 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)
+
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)