Commit c07450da authored by Dominik Charousset's avatar Dominik Charousset

Require include dir for predefined OpenSSL lib

parent 2f04ab2b
...@@ -574,7 +574,12 @@ add_optional_caf_lib(io) ...@@ -574,7 +574,12 @@ add_optional_caf_lib(io)
# build SSL module if OpenSSL library is available or if a parent project # build SSL module if OpenSSL library is available or if a parent project
# defined OPENSSL_LIBRARIES for us # defined OPENSSL_LIBRARIES for us
if(DEFINED OPENSSL_LIBRARIES) if(DEFINED OPENSSL_LIBRARIES)
if (NOT OPENSSL_INCLUDE_DIR)
message(FATAL_ERROR "got OPENSSL_LIBRARIES predefined but no OPENSSL_INCLUDE_DIR")
endif()
message(STATUS "use OPENSSL_LIBRARIES provided by parent: ${OPENSSL_LIBRARIES}") message(STATUS "use OPENSSL_LIBRARIES provided by parent: ${OPENSSL_LIBRARIES}")
message(STATUS "use OPENSSL_INCLUDE_DIR provided by parent: ${OPENSSL_INCLUDE_DIR}")
include_directories(BEFORE ${OPENSSL_INCLUDE_DIR})
add_optional_caf_lib(openssl) add_optional_caf_lib(openssl)
elseif(NOT CAF_NO_OPENSSL) elseif(NOT CAF_NO_OPENSSL)
find_package(OpenSSL) find_package(OpenSSL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment