/usr/lib/Wt/cmake/WtFindSsl.txt is in witty-examples 3.3.4+dfsg-6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | # We define:
# - SSL_INCLUDE_DIRS
# - SSL_LIBRARIES
# - SSL_FOUND
# Taking into account:
# - SSL_PREFIX
#
# Remark for Win32 users: This file searches for both debug and release
# versions of the OpenSSL library. We assume that debug libs are compiled
# with /MDd, and release with /MD. Apparently that is what CMake uses for
# these modes; it is currently unclear to me if cmake ever uses /MT variants.
# default OSX SSL library is not OK, does not work with asio
IF(APPLE)
FIND_PATH(SSL_INCLUDE_DIRS
openssl/ssl.h
PATHS
${SSL_PREFIX}/include/
/usr/include/
/usr/local/include/
c:/openssl/include/
NO_DEFAULT_PATH
)
ELSE(APPLE)
FIND_PATH(SSL_INCLUDE_DIRS
openssl/ssl.h
PATHS
${SSL_PREFIX}/include/
/usr/include/
/usr/local/include/
c:/openssl/include/
)
ENDIF(APPLE)
IF(WIN32)
IF(NOT SSL_LIB_NAMES)
SET(SSL_LIB_NAMES ssleay32MD ssleay32)
ENDIF(NOT SSL_LIB_NAMES)
IF(NOT SSL_LIB_TOO_NAMES)
SET(SSL_LIB_TOO_NAMES libeay32MD libeay32)
ENDIF(NOT SSL_LIB_TOO_NAMES)
MESSAGE("Looking for ssl: ${SSL_LIB_NAMES}, ${SSL_LIB_TOO_NAMES}")
FOREACH(l ${SSL_LIB_NAMES})
LIST(APPEND SSL_LIB_DEBUG_NAMES "${l}d")
ENDFOREACH()
FOREACH(l ${SSL_LIB_TOO_NAMES})
LIST(APPEND SSL_LIB_TOO_DEBUG_NAMES "${l}d")
ENDFOREACH()
FIND_LIBRARY(SSL_LIB_RELEASE
NAMES
${SSL_LIB_NAMES}
PATHS
/usr/lib
/usr/local/lib
${SSL_PREFIX}/lib
${SSL_PREFIX}/lib/VC
c:/openssl/lib/VC
)
FIND_LIBRARY(SSL_LIB_DEBUG
NAMES
${SSL_LIB_DEBUG_NAMES}
PATHS
/usr/lib
/usr/local/lib
${SSL_PREFIX}/lib
${SSL_PREFIX}/lib/VC
c:/openssl/lib/VC
)
FIND_LIBRARY(SSL_TOO_LIB_RELEASE
NAMES
${SSL_LIB_TOO_NAMES}
PATHS
${SSL_PREFIX}/lib
${SSL_PREFIX}/lib/VC
c:/openssl/lib/VC
)
FIND_LIBRARY(SSL_TOO_LIB_DEBUG
NAMES
${SSL_LIB_TOO_DEBUG_NAMES}
PATHS
${SSL_PREFIX}/lib
${SSL_PREFIX}/lib/VC
c:/openssl/lib/VC
)
# We require both release and debug versions of the SSL libs. People who
# really know what they are doing, may edit this file to relax this requirement.
IF(SSL_INCLUDE_DIRS
AND SSL_LIB_RELEASE
AND SSL_LIB_DEBUG
AND SSL_TOO_LIB_RELEASE
AND SSL_TOO_LIB_DEBUG)
SET(SSL_FOUND true)
SET(SSL_LIBRARIES
optimized ${SSL_LIB_RELEASE} debug ${SSL_LIB_DEBUG}
optimized ${SSL_TOO_LIB_RELEASE} debug ${SSL_TOO_LIB_DEBUG})
ELSE(SSL_INCLUDE_DIRS
AND SSL_LIB_RELEASE
AND SSL_LIB_DEBUG
AND SSL_TOO_LIB_RELEASE
AND SSL_TOO_LIB_DEBUG)
SET(SSL_FOUND false)
ENDIF(SSL_INCLUDE_DIRS
AND SSL_LIB_RELEASE
AND SSL_LIB_DEBUG
AND SSL_TOO_LIB_RELEASE
AND SSL_TOO_LIB_DEBUG)
ELSEIF(APPLE)
FIND_LIBRARY(SSL_LIB
NAMES
ssl
PATHS
${SSL_PREFIX}/lib
${SSL_PREFIX}/lib/VC
/usr/lib
/usr/local/lib
NO_DEFAULT_PATH
)
ELSE (WIN32)
FIND_LIBRARY(SSL_LIB
NAMES
ssl
PATHS
${SSL_PREFIX}/lib
${SSL_PREFIX}/lib/VC
/usr/lib
/usr/local/lib
)
ENDIF (WIN32)
IF(SSL_LIB
AND SSL_INCLUDE_DIRS)
IF(WIN32)
IF(SSL_TOO_LIB)
SET(SSL_FOUND true)
SET(SSL_LIBRARIES ${SSL_LIB} ${SSL_TOO_LIB})
ELSE(SSL_TOO_LIB)
SET(SSL_FOUND false)
ENDIF(SSL_TOO_LIB)
ELSE(WIN32)
SET(SSL_FOUND true)
SET(SSL_LIBRARIES ${SSL_LIB} -lcrypto)
ENDIF(WIN32)
ENDIF(SSL_LIB
AND SSL_INCLUDE_DIRS)
|