Skip to content

Commit

Permalink
Exporting the -static CMake targets when both shared and static libra…
Browse files Browse the repository at this point in the history
…ries built
  • Loading branch information
fpagliughi committed Jun 23, 2024
1 parent 2cb463b commit 3ce52f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 3ce52f9

Please sign in to comment.