From 5e71c166fcf1917ec8054d699eafda85eb2b5958 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Wed, 5 Sep 2012 22:18:29 +0800 Subject: [PATCH] workaround for fontforge/config.h --- CMakeLists.txt | 1 + src/ff/ff.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e70c33..e46d731 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ link_directories(${Boost_LIBRARY_DIRS}) find_path(FF_INCLUDE_PATH fontforge/fontforge.h) if(FF_INCLUDE_PATH) message("Found fontforge.h: ${FF_INCLUDE_PATH}/fontforge/fontforge.h") + include_directories(${FF_INCLUDE_PATH}) include_directories(${FF_INCLUDE_PATH}/fontforge) else() message(FATAL_ERROR "Error: cannot locate fontforge.h") diff --git a/src/ff/ff.c b/src/ff/ff.c index 2eb2a2d..b235866 100644 --- a/src/ff/ff.c +++ b/src/ff/ff.c @@ -12,6 +12,7 @@ #include #include +#include #include #include