Reverse the order of the include directories.
The version.h header file is generated by autoconf and therefore located in the build directory and not the source directory. If building out-of-tree, and a version.h header file is accidentally present in the source tree, the wrong file will be picked up. By reversing the order of the include directories, the build directory is searched first, and the correct header file will be used.
This commit is contained in:
parent
e2a7d8bb45
commit
f6df407699
@ -1,4 +1,4 @@
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include
|
||||
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
|
||||
LDADD = $(top_builddir)/src/libdivecomputer.la
|
||||
|
||||
bin_PROGRAMS = \
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include
|
||||
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
|
||||
AM_CFLAGS = $(LIBUSB_CFLAGS)
|
||||
|
||||
lib_LTLIBRARIES = libdivecomputer.la
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user