Exporting the -static CMake targets when both shared and static libraries built

This commit is contained in:
fpagliughi 2024-06-23 17:25:21 -04:00
parent 2cb463b0e7
commit 3ce52f99c6
1 changed files with 2 additions and 0 deletions

View File

@ -207,6 +207,7 @@ if(PAHO_BUILD_STATIC)
)
else()
install(TARGETS paho-mqtt3c-static paho-mqtt3a-static
EXPORT eclipse-paho-mqtt-cTargets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
endif()
@ -371,6 +372,7 @@ if(PAHO_WITH_SSL OR PAHO_WITH_LIBRESSL)
)
else()
install(TARGETS paho-mqtt3cs-static paho-mqtt3as-static
EXPORT eclipse-paho-mqtt-cTargets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
endif()