Skip to content

Fix for cmakelist when building inside docker #201

@chriskrejler

Description

@chriskrejler

I had some issues building the lib inside a docker container in the form of
/src/pdf2htmlEX/../fontforge/inc/ffglib.h:33:10: fatal error: gio/gio.h: No such file or directory 33 | #include <gio/gio.h>

Added the following to CMakeLists.txt which fixed the issue:

Replaced the following
find_package(PkgConfig)

with:

find_package(PkgConfig)
pkg_check_modules(GLIB REQUIRED glib-2.0)
include_directories(${GLIB_INCLUDE_DIRS})
link_directories(${GLIB_LIBRARY_DIRS})
add_definitions(${GLIB_CFLAGS_OTHER})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions