summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-05-03 11:01:33 +0200
committerLubomir Rintel <lkundrak@v3.sk>2019-05-03 11:04:34 +0200
commite33a995db151f8138b8cf4558ced7a358d7a1d6f (patch)
tree9eaa736d1ad8cf7ecb2b5c3df0f2428c14ede2c0
parent54663b89dcb1939106fb6fb932cfa170a280e58a (diff)
downloadNetworkManager-e33a995db151f8138b8cf4558ced7a358d7a1d6f.tar.gz
build: fix an out-of-tree build
make[3]: Entering directory 'NetworkManager/_build/sub' CC clients/cli/nmcli-common.o cc1: error: ./clients/common: No such file or directory [-Werror=missing-include-dirs] cc1: all warnings being treated as errors The only generated header in $builddir/clients/common is settings-docs.h and only libnmc.la needs it. Include the directory on the command line only when we know it exists.
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index e86dbcd702..993ee9781d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3999,7 +3999,6 @@ clients_cppflags = \
-I$(srcdir)/libnm \
-I$(builddir)/libnm \
-I$(srcdir)/clients/common \
- -I$(builddir)/clients/common \
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT \
$(GLIB_CFLAGS) \
$(SANITIZER_EXEC_CFLAGS) \
@@ -4065,6 +4064,7 @@ clients_common_libnmc_la_SOURCES = \
clients_common_libnmc_la_CPPFLAGS = \
$(clients_cppflags) \
+ -I$(builddir)/clients/common \
-DG_LOG_DOMAIN=\""libnmc"\" \
$(NULL)