buildsys: fix build on macOS with libssh2 present via homebrew

Path to libssh2 headers was missing from CPPFLAGS resulting into FTBFS.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Yury V. Zaytsev 2024-05-30 16:57:35 +02:00 committed by Andrew Borodin
parent 3d75fad259
commit b76569d5ee
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,13 @@ SUBDIRS += consaver
AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
endif
# required for textconf.c
if ENABLE_VFS
if ENABLE_VFS_SFTP
AM_CPPFLAGS += $(LIBSSH_CFLAGS)
endif
endif
AM_CPPFLAGS += -I$(top_srcdir) $(GLIB_CFLAGS)
localedir = $(datadir)/locale