cmake: don't try to detect OpenSSL if OPENSSL_INCLUDE_DIR and OPENSSL_LIBRARIES are defined

--HG--
extra : rebase_source : fee9366943406e93964821a1991f1ac0c03983e5
This commit is contained in:
Mads Kiilerich 2012-03-21 23:15:46 +01:00
parent dc32388e50
commit 2d68abd97d

View File

@ -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)