diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2023-04-26 22:01:23 -0700 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2023-04-27 00:15:41 -0700 |
commit | 2572e1333ecc58ff3c55fff755ede6c702779829 (patch) | |
tree | 46968350653e61b70df6d191f0d816f4990313f6 | |
parent | b7b18462757aa30b630b687c071067bedfb4194c (diff) | |
download | curl-2572e1333ecc58ff3c55fff755ede6c702779829.tar.gz |
tests/http: fix out-of-tree builds
Add both lib/ directories (src & build) to the search path so
curl_setup.h and its dependencies can be found.
Followup-to acd82c8b
Ref: #11006
Closes #11036
-rw-r--r-- | tests/http/clients/Makefile.am | 2 | ||||
-rw-r--r-- | tests/http/clients/ws-data.c | 2 | ||||
-rw-r--r-- | tests/http/clients/ws-pingpong.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/tests/http/clients/Makefile.am b/tests/http/clients/Makefile.am index 386da5a22..8fdc190b9 100644 --- a/tests/http/clients/Makefile.am +++ b/tests/http/clients/Makefile.am @@ -33,6 +33,8 @@ AUTOMAKE_OPTIONS = foreign nostdinc # $(top_srcdir)/include is for libcurl's external include files AM_CPPFLAGS = -I$(top_srcdir)/include \ + -I$(top_builddir)/lib \ + -I$(top_srcdir)/lib \ -DCURL_DISABLE_DEPRECATION LIBDIR = $(top_builddir)/lib diff --git a/tests/http/clients/ws-data.c b/tests/http/clients/ws-data.c index 1c61d59f7..93bea4ee7 100644 --- a/tests/http/clients/ws-data.c +++ b/tests/http/clients/ws-data.c @@ -36,7 +36,7 @@ /* curl stuff */ #include <curl/curl.h> -#include "../../../lib/curl_setup.h" +#include "curl_setup.h" #ifdef USE_WEBSOCKETS diff --git a/tests/http/clients/ws-pingpong.c b/tests/http/clients/ws-pingpong.c index 4307dea73..d8cab976e 100644 --- a/tests/http/clients/ws-pingpong.c +++ b/tests/http/clients/ws-pingpong.c @@ -36,7 +36,7 @@ /* curl stuff */ #include <curl/curl.h> -#include "../../../lib/curl_setup.h" +#include "curl_setup.h" #ifdef USE_WEBSOCKETS |