|
@@ -40,7 +40,6 @@ endif()
|
|
|
|
|
|
# We need to link OpenSSL if not dynamically loading
|
|
# We need to link OpenSSL if not dynamically loading
|
|
if (CIVETWEB_ENABLE_SSL)
|
|
if (CIVETWEB_ENABLE_SSL)
|
|
- include_directories(${OPENSSL_INCLUDE_DIR})
|
|
|
|
if (CIVETWEB_ENABLE_SSL_DYNAMIC_LOADING)
|
|
if (CIVETWEB_ENABLE_SSL_DYNAMIC_LOADING)
|
|
find_package(LibDl)
|
|
find_package(LibDl)
|
|
if (LIBDL_FOUND)
|
|
if (LIBDL_FOUND)
|
|
@@ -48,6 +47,8 @@ if (CIVETWEB_ENABLE_SSL)
|
|
endif()
|
|
endif()
|
|
else()
|
|
else()
|
|
find_package(OpenSSL)
|
|
find_package(OpenSSL)
|
|
|
|
+ include_directories(${OPENSSL_INCLUDE_DIR})
|
|
|
|
+ message(STATUS "OpenSSL include directory: ${OPENSSL_INCLUDE_DIR}")
|
|
target_link_libraries(c-library ${OPENSSL_LIBRARIES})
|
|
target_link_libraries(c-library ${OPENSSL_LIBRARIES})
|
|
endif()
|
|
endif()
|
|
endif()
|
|
endif()
|