From 1238729cd07289fa55d5e54691ead112eeeff467 Mon Sep 17 00:00:00 2001 From: "jerome.fayot" Date: Fri, 22 Nov 2024 11:18:01 +0100 Subject: [PATCH] build: fixed install sioclient_tls --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dc07e51..dad3be3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,12 +177,20 @@ endif() include(GNUInstallDirs) -install(TARGETS sioclient sioclient_tls +install(TARGETS sioclient EXPORT sioclientTargets INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sioclient ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/sioclient ) +if(OPENSSL_FOUND) + install(TARGETS sioclient_tls + EXPORT sioclientTargets + INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sioclient + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/sioclient + ) +endif() + install( FILES ${CMAKE_CURRENT_LIST_DIR}/src/sio_client.h