Skip to content

Commit

Permalink
tests/http: fix out-of-tree builds
Browse files Browse the repository at this point in the history
Add both lib/ directories (src & build) to the search path so
curl_setup.h and its dependencies can be found.

Followup-to acd82c8

Ref: #11006
Closes #11036
  • Loading branch information
dfandrich committed Apr 27, 2023
1 parent ca3f6de commit 1b4eb01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/http/clients/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/http/clients/ws-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

/* curl stuff */
#include <curl/curl.h>
#include "../../../lib/curl_setup.h"
#include "curl_setup.h"

#ifdef USE_WEBSOCKETS

Expand Down
2 changes: 1 addition & 1 deletion tests/http/clients/ws-pingpong.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

/* curl stuff */
#include <curl/curl.h>
#include "../../../lib/curl_setup.h"
#include "curl_setup.h"

#ifdef USE_WEBSOCKETS

Expand Down

0 comments on commit 1b4eb01

Please sign in to comment.