summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2012-12-06 23:27:26 -0500
committerAlan Antonuk <alan.antonuk@gmail.com>2013-04-17 09:56:16 -0700
commit5a5e5886843f523ef2cb1991a27d0b0fb828fc19 (patch)
tree10fa5470bd26bd335354bfc70c3e6938f1d8051f /cmake
parent2ee021a29a29c3557c8cf467918c90d043517d17 (diff)
downloadrabbitmq-c-github-ask-5a5e5886843f523ef2cb1991a27d0b0fb828fc19.tar.gz
Update FindPolarSSL and FindcyaSSL cmake scripts
LibFindMacros.cmake was removed from the project. Update FindPolarSSL and FindcyaSSL scripts to work without LibFindMacros.cmake
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindPolarSSL.cmake20
-rw-r--r--cmake/FindcyaSSL.cmake20
2 files changed, 26 insertions, 14 deletions
diff --git a/cmake/FindPolarSSL.cmake b/cmake/FindPolarSSL.cmake
index f5a7c9b..b9d04ef 100644
--- a/cmake/FindPolarSSL.cmake
+++ b/cmake/FindPolarSSL.cmake
@@ -1,17 +1,23 @@
-INCLUDE(LibFindMacros)
+# - Try to find the PolarSSL SSL Library
+# The module will set the following variables
+#
+# POLARSSL_FOUND - System has popt
+# POLARSSL_INCLUDE_DIR - The popt include directory
+# POLARSSL_LIBRARIES - The libraries needed to use popt
# Find the include directories
FIND_PATH(POLARSSL_INCLUDE_DIR
NAMES polarssl/ssl.h
- HINTS ${POLARSSL_PREFIX}/include
+ DOC "Path containing the polarssl/ssl.h include file"
)
-FIND_LIBRARY(POLARSSL_LIBRARY
+FIND_LIBRARY(POLARSSL_LIBRARIES
NAMES polarssl
- HINTS ${POLARSSL_PREFIX}/lib
+ DOC "polarssl library path"
)
-SET(POLARSSL_PROCESS_INCLUDES POLARSSL_INCLUDE_DIR)
-SET(POLARSSL_PROCESS_LIBS POLARSSL_LIBRARY)
+include(FindPackageHandleStandardArgs)
-LIBFIND_PROCESS(POLARSSL)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(POLARSSL
+ REQUIRED_VARS POLARSSL_INCLUDE_DIR POLARSSL_LIBRARIES
+ )
diff --git a/cmake/FindcyaSSL.cmake b/cmake/FindcyaSSL.cmake
index 80452bb..06bac00 100644
--- a/cmake/FindcyaSSL.cmake
+++ b/cmake/FindcyaSSL.cmake
@@ -1,17 +1,23 @@
-INCLUDE(LibFindMacros)
+# - Try to find the cyaSSL SSL Library
+# The module will set the following variables
+#
+# CYASSL_FOUND - System has popt
+# CYASSL_INCLUDE_DIR - The popt include directory
+# CYASSL_LIBRARIES - The libraries needed to use popt
# Find the include directories
FIND_PATH(CYASSL_INCLUDE_DIR
NAMES cyassl/ssl.h
- HINTS ${CYASSL_PREFIX}/include
+ DOC "Path containing the cyassl/ssl.h include file"
)
-FIND_LIBRARY(CYASSL_LIBRARY
+FIND_LIBRARY(CYASSL_LIBRARIES
NAMES cyassl
- HINTS ${CYASSL_PREFIX}/lib
+ DOC "cyassl library path"
)
-SET(CYASSL_PROCESS_INCLUDES CYASSL_INCLUDE_DIR)
-SET(CYASSL_PROCESS_LIBS CYASSL_LIBRARY)
+include(FindPackageHandleStandardArgs)
-LIBFIND_PROCESS(CYASSL)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(CYASSL
+ REQUIRED_VARS CYASSL_INCLUDE_DIR CYASSL_LIBRARIES
+ )