Skip to content

Commit 7f2fa33

Browse files
committed
Add project's C args to test program
Normally the test program should not use the private config variables of the library but we are temporarily adding them to make the tests succed. The problem was reported in the github issue: sile-typesetter#27
1 parent 939a4e2 commit 7f2fa33

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/meson.build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
libtexpdf_include = include_directories('..')
22

3+
# FIXME:
4+
# Above we should not add libtexpdf_cargs but if they are not added
5+
# compiling may fail because the header inclusion is conditioned to
6+
# defines like HAVE_CONFIG_H and others.
7+
# In addition the header files tries to conditionally include config.h
8+
# but this latter is private and not exported.
39
test_create = executable('test-create', 'test-create.c',
10+
c_args: libtexpdf_cargs,
411
dependencies: libtexpdf_dep,
512
include_directories: libtexpdf_include,
613
)

0 commit comments

Comments
 (0)