Эх сурвалжийг харах

Enable out-of-source build

Add top build directory to tests. Otherwise modbus-version.h
won't be found during the build process.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Yegor Yefremov 12 жил өмнө
parent
commit
d97ba9db3a
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      tests/Makefile.am

+ 2 - 1
tests/Makefile.am

@@ -41,7 +41,8 @@ AM_CPPFLAGS = \
     -include $(top_builddir)/config.h \
     -DSYSCONFDIR=\""$(sysconfdir)"\" \
     -DLIBEXECDIR=\""$(libexecdir)"\" \
-    -I${top_srcdir}/src
+    -I${top_srcdir}/src \
+    -I${top_builddir}/src
 
 AM_CFLAGS = ${my_CFLAGS}