Show
Ignore:
Timestamp:
01/28/08 21:33:38 (10 months ago)
Author:
edmanm
Message:

Add some CMake fu to find the right OpenSSL libs, based on the
FindOpenSSL.cmake module from the CMake distribution. We still need
some more CMake fu to poke at the chosen Qt build to see if OpenSSL
libs are needed or not, but this should work in the common case.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vidalia/trunk/CMakeLists.txt

    r2327 r2334  
    6868## Check for QSslSocket 
    6969check_include_file_cxx("qsslsocket.h" HAVE_QSSLSOCKET_H) 
    70 if(HAVE_QSSLSOCKET_H) 
     70if (HAVE_QSSLSOCKET_H) 
    7171  check_symbol_exists(QT_NO_OPENSSL "QtGlobal" QT_NO_SSL_SUPPORT) 
    72   if(NOT QT_NO_SSL_SUPPORT) 
     72  if (NOT QT_NO_SSL_SUPPORT) 
    7373    option(USE_QSSLSOCKET "Use Qt's QSslSocket for GeoIP lookups." ON) 
    7474  endif(NOT QT_NO_SSL_SUPPORT) 
    7575endif(HAVE_QSSLSOCKET_H) 
     76if (USE_QSSLSOCKET) 
     77  if (MSVC OR UNIX) 
     78    include(${CMAKE_SOURCE_DIR}/cmake/FindOpenSSL.cmake) 
     79  endif(MSVC OR UNIX) 
     80endif(USE_QSSLSOCKET) 
    7681 
    7782## Write out a configuration file 
     
    8792add_subdirectory(pkg) 
    8893 
    89 ## The 'confclean' target removes cached CMake configuration information 
    90 if (WIN32) 
    91   set(RM_CMD del) 
    92 else (WIN32) 
    93   set(RM_CMD rm) 
    94 endif(WIN32) 
    95 add_custom_target(confclean ${RM_CMD} CMakeCache.txt) 
    96