Don't install example plugins.

This commit is contained in:
Roger A. Light 2020-12-09 22:36:53 +00:00
parent 66b680af34
commit f54360d228
4 changed files with 10 additions and 6 deletions

View File

@ -7,4 +7,5 @@ set_target_properties(mosquitto_message_timestamp PROPERTIES
) )
set_target_properties(mosquitto_message_timestamp PROPERTIES PREFIX "") 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}")

View File

@ -19,8 +19,9 @@ check: test
test: test:
install: ${PLUGIN_NAME}.so install: ${PLUGIN_NAME}.so
$(INSTALL) -d "${DESTDIR}$(prefix)/lib" # Don't install, these are examples only.
$(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so" #$(INSTALL) -d "${DESTDIR}$(prefix)/lib"
#$(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so"
uninstall : uninstall :
-rm -f "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so" -rm -f "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so"

View File

@ -11,4 +11,5 @@ if(WIN32)
target_link_libraries(mosquitto_payload_modification mosquitto) target_link_libraries(mosquitto_payload_modification mosquitto)
endif(WIN32) 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}")

View File

@ -19,8 +19,9 @@ check: test
test: test:
install: ${PLUGIN_NAME}.so install: ${PLUGIN_NAME}.so
$(INSTALL) -d "${DESTDIR}$(prefix)/lib" # Don't install, these are examples only.
$(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so" #$(INSTALL) -d "${DESTDIR}$(prefix)/lib"
#$(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so"
uninstall : uninstall :
-rm -f "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so" -rm -f "${DESTDIR}${prefix}/lib/${PLUGIN_NAME}.so"