Skip to content

Commit acc4de1

Browse files
dfandrichbch
authored andcommittedJul 19, 2023
tests: use AM_CPPFILES to modify flags in unit tests
Using CPPFLAGS sometimes caused odd compile issues when building tests with parallel make and AM_CPPFILES is the right flag, anyway. Follow-up to cb7ed5a Ref curl#10749
1 parent d20b4f8 commit acc4de1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎tests/unit/Makefile.am

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ AUTOMAKE_OPTIONS = foreign nostdinc
3232
# $(top_builddir)/lib is for libcurl's generated lib/curl_config.h file
3333
# $(top_srcdir)/lib for libcurl's lib/curl_setup.h and other "borrowed" files
3434

35-
CPPFLAGS += -I$(top_srcdir)/include \
36-
-I$(top_builddir)/lib \
37-
-I$(top_srcdir)/lib \
38-
-I$(top_srcdir)/src \
39-
-I$(top_srcdir)/tests/libtest
35+
AM_CPPFLAGS = -I$(top_srcdir)/include \
36+
-I$(top_builddir)/lib \
37+
-I$(top_srcdir)/lib \
38+
-I$(top_srcdir)/src \
39+
-I$(top_srcdir)/tests/libtest
4040

4141
EXTRA_DIST = Makefile.inc CMakeLists.txt README.md
4242

@@ -49,7 +49,7 @@ LDADD = $(top_builddir)/src/libcurltool.la \
4949
$(top_builddir)/lib/libcurlu.la \
5050
@LDFLAGS@ @LIBCURL_LIBS@ @NSS_LIBS@
5151

52-
CPPFLAGS += -DCURL_STATICLIB -DUNITTESTS
52+
AM_CPPFLAGS += -DCURL_STATICLIB -DUNITTESTS
5353

5454
CHECKSRC = $(CS_$(V))
5555
CS_0 = @echo " RUN " $@;

0 commit comments

Comments
 (0)
Please sign in to comment.