Skip to content
Ruslan Baratov edited this page Jul 17, 2016 · 3 revisions
OpenSSL
hunter_add_package(OpenSSL)
find_package(OpenSSL REQUIRED)

target_link_libraries(foo OpenSSL::SSL OpenSSL::Crypto)

For backward compatibility:

hunter_add_package(OpenSSL)
find_package(OpenSSL REQUIRED)

include_directories("${OPENSSL_INCLUDE_DIR}")
target_link_libraries(... ${OPENSSL_LIBRARIES})

Bugs

Fixed/workaround

Clone this wiki locally