mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-23 08:33:48 +08:00
Use absolute rather than relative paths when installing.
This commit is contained in:
+2
-2
@@ -171,5 +171,5 @@ if(WITH_STATIC_LIBRARIES)
|
||||
)
|
||||
endif()
|
||||
|
||||
install(FILES ../include/mosquitto.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
install(FILES ../include/mqtt_protocol.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
install(FILES ${mosquitto_SOURCE_DIR}/include/mosquitto.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
install(FILES ${mosquitto_SOURCE_DIR}/include/mqtt_protocol.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
|
||||
@@ -69,4 +69,4 @@ if(WITH_STATIC_LIBRARIES)
|
||||
)
|
||||
endif()
|
||||
|
||||
install(FILES ../../mosquittopp.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
install(FILES ${mosquitto_SOURCE_DIR}/include/mosquittopp.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
|
||||
+7
-2
@@ -186,7 +186,7 @@ endif()
|
||||
if(WITH_WEBSOCKETS)
|
||||
if(WITH_WEBSOCKETS_BUILTIN)
|
||||
add_definitions("-DWITH_WEBSOCKETS=WS_IS_BUILTIN")
|
||||
set(MOSQ_SRCS ${MOSQ_SRCS} ../deps/picohttpparser/picohttpparser.c)
|
||||
set(MOSQ_SRCS ${MOSQ_SRCS} ${mosquitto_SOURCE_DIR}/deps/picohttpparser/picohttpparser.c)
|
||||
else()
|
||||
find_package(libwebsockets)
|
||||
add_definitions("-DWITH_WEBSOCKETS=WS_IS_LWS")
|
||||
@@ -271,4 +271,9 @@ endif()
|
||||
install(TARGETS mosquitto
|
||||
RUNTIME DESTINATION "${CMAKE_INSTALL_SBINDIR}"
|
||||
)
|
||||
install(FILES ../include/mosquitto_broker.h ../include/mosquitto_plugin.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
install(
|
||||
FILES
|
||||
${mosquitto_SOURCE_DIR}/include/mosquitto_broker.h
|
||||
${mosquitto_SOURCE_DIR}/include/mosquitto_plugin.h
|
||||
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user