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 committed Jul 1, 2024
1 parent 2341ce9 commit d49e77c
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 @@ -372,6 +373,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 d49e77c

Please sign in to comment.