mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-21 23:47:52 +08:00
Bugfix: include "deps" directory only if BUNDLED_DEPS has been provided and set to true
Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
This commit is contained in:
committed by
Roger Light
parent
56d0b950ac
commit
7a5c2d4da5
@@ -135,7 +135,10 @@ endif
|
||||
|
||||
STATIC_LIB_DEPS:=
|
||||
|
||||
LIB_CPPFLAGS=$(CPPFLAGS) -I. -I.. -I../lib -I../src/deps
|
||||
LIB_CPPFLAGS=$(CPPFLAGS) -I. -I.. -I../lib
|
||||
ifeq ($(WITH_BUNDLED_DEPS),yes)
|
||||
LIB_CPPFLAGS:=$(LIB_CPPFLAGS) -I../src/deps
|
||||
endif
|
||||
LIB_CFLAGS:=$(CFLAGS)
|
||||
LIB_CXXFLAGS:=$(CXXFLAGS)
|
||||
LIB_LDFLAGS:=$(LDFLAGS)
|
||||
|
||||
+4
-1
@@ -1,11 +1,14 @@
|
||||
add_subdirectory(cpp)
|
||||
|
||||
include_directories(${mosquitto_SOURCE_DIR} ${mosquitto_SOURCE_DIR}/lib
|
||||
${mosquitto_SOURCE_DIR}/src/deps
|
||||
${STDBOOL_H_PATH} ${STDINT_H_PATH}
|
||||
${OPENSSL_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR})
|
||||
link_directories(${mosquitto_SOURCE_DIR}/lib)
|
||||
|
||||
if (WITH_BUNDLED_DEPS)
|
||||
include_directories(${mosquitto_SOURCE_DIR} ${mosquitto_SOURCE_DIR}/src/deps)
|
||||
endif (WITH_BUNDLED_DEPS)
|
||||
|
||||
set(C_SRC
|
||||
actions.c
|
||||
callbacks.c
|
||||
|
||||
+5
-1
@@ -2,7 +2,11 @@ include ../../config.mk
|
||||
|
||||
.PHONY: all check test test-broker test-lib clean coverage
|
||||
|
||||
CPPFLAGS:=$(CPPFLAGS) -I../.. -I../../lib -I../../src -I../../src/deps
|
||||
CPPFLAGS:=$(CPPFLAGS) -I../.. -I../../lib -I../../src
|
||||
ifeq ($(WITH_BUNDLED_DEPS),yes)
|
||||
CPPFLAGS:=$(CPPFLAGS) -I../../src/deps
|
||||
endif
|
||||
|
||||
CFLAGS:=$(CFLAGS) -coverage -Wall -ggdb
|
||||
LDFLAGS:=$(LDFLAGS) -coverage
|
||||
LDADD:=$(LDADD) -lcunit
|
||||
|
||||
Reference in New Issue
Block a user