diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2021-04-19 06:29:42 +0000 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2021-04-19 00:16:12 -0700 |
commit | 9a6bba49e8aff088f2780f4d27732c86e4acacaa (patch) | |
tree | 25437c78572ab4c9f8fcc7ac67e56dba00e18f25 /librabbitmq | |
parent | cb99750b55d0634e22af03827649ca77d4dbc36a (diff) | |
download | rabbitmq-c-9a6bba49e8aff088f2780f4d27732c86e4acacaa.tar.gz |
cmake: use OpenSSL::SSL imported target
Signed-off-by: GitHub <noreply@github.com>
Diffstat (limited to 'librabbitmq')
-rw-r--r-- | librabbitmq/CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/librabbitmq/CMakeLists.txt b/librabbitmq/CMakeLists.txt index 91836fa..c5b4361 100644 --- a/librabbitmq/CMakeLists.txt +++ b/librabbitmq/CMakeLists.txt @@ -53,8 +53,7 @@ if (ENABLE_SSL_SUPPORT) amqp_openssl_bio.c amqp_openssl_bio.h ) - set(SSL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR}) - set(AMQP_SSL_LIBS ${OPENSSL_LIBRARIES}) + set(AMQP_SSL_LIBS OpenSSL::SSL) if (APPLE) # Apple has deprecated OpenSSL in 10.7+. This disables that warning. set_source_files_properties(${AMQP_SSL_SRCS} @@ -63,10 +62,10 @@ if (ENABLE_SSL_SUPPORT) if (WIN32 AND NOT CMAKE_USE_PTHREADS_INIT) set(AMQP_SSL_SRCS ${AMQP_SSL_SRCS} win32/threads.h win32/threads.c) - set(SSL_INCLUDE_DIRS ${SSL_INCLUDE_DIRS} win32) + set(SSL_INCLUDE_DIRS win32) else() set(AMQP_SSL_SRCS ${AMQP_SSL_SRCS} unix/threads.h) - set(SSL_INCLUDE_DIRS ${SSL_INCLUDE_DIRS} unix) + set(SSL_INCLUDE_DIRS unix) endif() endif() |