mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
build: Set a default openssl search path for windows.
This commit is contained in:
@@ -18,6 +18,10 @@ if (OPENSSL_LIBRARIES AND OPENSSL_INCLUDE_DIRS)
|
|||||||
# in cache already
|
# in cache already
|
||||||
set(OPENSSL_FOUND TRUE)
|
set(OPENSSL_FOUND TRUE)
|
||||||
else (OPENSSL_LIBRARIES AND OPENSSL_INCLUDE_DIRS)
|
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
|
# use pkg-config to get the directories and then use these values
|
||||||
# in the FIND_PATH() and FIND_LIBRARY() calls
|
# in the FIND_PATH() and FIND_LIBRARY() calls
|
||||||
if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
|
if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
|
||||||
|
|||||||
Reference in New Issue
Block a user