Skip to content

Commit

Permalink
Don't install example plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight authored and fAuernigg committed Jan 4, 2021
1 parent 50f393f commit e4413cb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion plugins/message-timestamp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ set_target_properties(mosquitto_message_timestamp PROPERTIES
)
set_target_properties(mosquitto_message_timestamp PROPERTIES PREFIX "")

install(TARGETS mosquitto_message_timestamp RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
# Don't install, these are example plugins only.
#install(TARGETS mosquitto_message_timestamp RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
5 changes: 3 additions & 2 deletions plugins/message-timestamp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ check: test
test:

install: ${PLUGIN_NAME}.so
$(INSTALL) -d "${DESTDIR}$(prefix)/lib"
$(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so"
# Don't install, these are examples only.
#$(INSTALL) -d "${DESTDIR}$(prefix)/lib"
#$(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so"

uninstall :
-rm -f "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so"
3 changes: 2 additions & 1 deletion plugins/payload-modification/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ if(WIN32)
target_link_libraries(mosquitto_payload_modification mosquitto)
endif(WIN32)

install(TARGETS mosquitto_payload_modification RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
# Don't install, these are example plugins only.
#install(TARGETS mosquitto_payload_modification RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
5 changes: 3 additions & 2 deletions plugins/payload-modification/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ check: test
test:

install: ${PLUGIN_NAME}.so
$(INSTALL) -d "${DESTDIR}$(prefix)/lib"
$(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so"
# Don't install, these are examples only.
#$(INSTALL) -d "${DESTDIR}$(prefix)/lib"
#$(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so"

uninstall :
-rm -f "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so"

0 comments on commit e4413cb

Please sign in to comment.