diff --git a/CMakeLists.txt b/CMakeLists.txt index 02c9176713..2c27d7efce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,10 +49,11 @@ include(Utils) # function to help with cUrl macro(FIND_CURL) if (NOT WIN32 AND NOT APPLE AND CURL_STATICLIB) + find_package(OpenSSL REQUIRED) set (OLD_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) set (CMAKE_FIND_LIBRARY_SUFFIXES .a) find_package(CURL REQUIRED) - list(APPEND CURL_LIBRARIES ssl crypto) + list(APPEND CURL_LIBRARIES ${OPENSSL_LIBRARIES} ${BOOST_THREAD_LIBRARY} ${CMAKE_DL_LIBS}) set (CMAKE_FIND_LIBRARY_SUFFIXES ${OLD_SUFFIXES}) else (NOT WIN32 AND NOT APPLE AND CURL_STATICLIB) find_package(CURL REQUIRED)