mqtt plugin: properly set CPPFLAGS in Makefile
authorMarc Fournier <marc.fournier@camptocamp.com>
Wed, 8 Jul 2015 22:24:21 +0000 (00:24 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 8 Jul 2015 22:24:21 +0000 (00:24 +0200)
This fixes the build when the --with-libmosquitto option is used.

src/Makefile.am

index 0ca9b71..c4504ac 100644 (file)
@@ -642,6 +642,7 @@ pkglib_LTLIBRARIES += mqtt.la
 mqtt_la_SOURCES = mqtt.c
 mqtt_la_LDFLAGS = $(PLUGIN_LDFLAGS)
 mqtt_la_CFLAGS = $(AM_CFLAGS) $(BUILD_WITH_LIBMOSQUITTO_CFLAGS)
+mqtt_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBMOSQUITTO_CPPFLAGS)
 mqtt_la_LIBADD = $(BUILD_WITH_LIBMOSQUITTO_LIBS)
 endif