Skip to content

Commit

Permalink
Add project's C args to test program
Browse files Browse the repository at this point in the history
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
  • Loading branch information
franko committed Jan 3, 2023
1 parent 939a4e2 commit 7f2fa33
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
libtexpdf_include = include_directories('..')

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

0 comments on commit 7f2fa33

Please sign in to comment.