Skip to content

Commit

Permalink
Merge pull request #1495 from fpagliughi/cmake-export-static-always
Browse files Browse the repository at this point in the history
Exporting the -static CMake targets when both shared and static libraries built.
  • Loading branch information
icraggs authored Jul 1, 2024
2 parents 6a8e0d4 + 3ce52f9 commit 3d7a1a6
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 3d7a1a6

Please sign in to comment.