Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
4b793ad1
Commit
4b793ad1
authored
Jul 23, 2012
by
Rolf Eike Beer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FindOpenSSL: find cross-compiled OpenSSL from MinGW (
#13431
)
Suggested-by:
Dominik Schmidt
<
dev@dominik-schmidt.de
>
parent
aedc2251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
Modules/FindOpenSSL.cmake
Modules/FindOpenSSL.cmake
+10
-2
No files found.
Modules/FindOpenSSL.cmake
View file @
4b793ad1
...
...
@@ -134,9 +134,15 @@ IF(WIN32 AND NOT CYGWIN)
MARK_AS_ADVANCED
(
LIB_EAY_DEBUG LIB_EAY_RELEASE
)
ELSEIF
(
MINGW
)
# same player, for MingW
SET
(
LIB_EAY_NAMES libeay32
)
SET
(
SSL_EAY_NAMES ssleay32
)
IF
(
CMAKE_CROSS_COMPILING
)
LIST
(
APPEND LIB_EAY_NAMES crypto
)
LIST
(
APPEND SSL_EAY_NAMES ssl
)
ENDIF
()
FIND_LIBRARY
(
LIB_EAY
NAMES
libeay32
${
LIB_EAY_NAMES
}
${
_OPENSSL_ROOT_HINTS_AND_PATHS
}
PATH_SUFFIXES
"lib"
...
...
@@ -145,7 +151,7 @@ IF(WIN32 AND NOT CYGWIN)
FIND_LIBRARY
(
SSL_EAY
NAMES
ssleay32
${
SSL_EAY_NAMES
}
${
_OPENSSL_ROOT_HINTS_AND_PATHS
}
PATH_SUFFIXES
"lib"
...
...
@@ -154,6 +160,8 @@ IF(WIN32 AND NOT CYGWIN)
MARK_AS_ADVANCED
(
SSL_EAY LIB_EAY
)
set
(
OPENSSL_LIBRARIES
${
SSL_EAY
}
${
LIB_EAY
}
)
unset
(
LIB_EAY_NAMES
)
unset
(
SSL_EAY_NAMES
)
ELSE
(
MSVC
)
# Not sure what to pick for -say- intel, let's use the toplevel ones and hope someone report issues:
FIND_LIBRARY
(
LIB_EAY
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment