Skip to content

Commit

Permalink
build: fixed install sioclient_tls
Browse files Browse the repository at this point in the history
  • Loading branch information
jfayot committed Nov 22, 2024
1 parent 62e9cae commit 1238729
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1238729

Please sign in to comment.