From 2d68abd97d96e1629651454d1439f6aeb8cb4fea Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Wed, 21 Mar 2012 23:15:46 +0100 Subject: [PATCH] cmake: don't try to detect OpenSSL if OPENSSL_INCLUDE_DIR and OPENSSL_LIBRARIES are defined --HG-- extra : rebase_source : fee9366943406e93964821a1991f1ac0c03983e5 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a37f75d42..c539ca2ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,7 +100,9 @@ check_include_files(inttypes.h HAVE_INTTYPES_H) check_struct_has_member("struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF) # Libraries that we have a hard dependency on +if(NOT DEFINED OPENSSL_INCLUDE_DIR OR NOT DEFINED OPENSSL_LIBRARIES) find_required_package(OpenSSL) +endif() # Mac OS X if(APPLE)