Merge pull request #388 from theirix/link-openssl
Find and Link OpenSSL
This commit is contained in:
commit
0d2ea8aa72
|
|
@ -10,7 +10,7 @@
|
||||||
# ON: Build posix handler implementation
|
# ON: Build posix handler implementation
|
||||||
# OFF: Don't build posix handler implementation
|
# OFF: Don't build posix handler implementation
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.4 FATAL_ERROR)
|
||||||
|
|
||||||
# project name
|
# project name
|
||||||
project(amqpcpp)
|
project(amqpcpp)
|
||||||
|
|
@ -129,4 +129,7 @@ target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC
|
||||||
|
|
||||||
if(AMQP-CPP_LINUX_TCP)
|
if(AMQP-CPP_LINUX_TCP)
|
||||||
target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
|
target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
|
||||||
|
# Find OpenSSL and provide include dirs
|
||||||
|
find_package(OpenSSL REQUIRED)
|
||||||
|
target_include_directories(${PROJECT_NAME} PRIVATE ${OPENSSL_INCLUDE_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue