From 7f57ff316e04456ca8672c676db25cef1d5c5db7 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Wed, 18 Sep 2013 18:02:53 +0800 Subject: [PATCH] don't include freetype without ENABLE_SVG --- CMakeLists.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76317da..f03f713 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,13 +48,12 @@ if(ENABLE_SVG) else() message(FATAL_ERROR "Error: no SVG support found in Cairo") endif() -endif() -find_package(Freetype REQUIRED) -include_directories(${FREETYPE_INCLUDE_DIRS}) -link_directories(${FREETYPE_LIBRARY_DIRS}) -set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} ${FREETYPE_LIBRARIES}) - + find_package(Freetype REQUIRED) + include_directories(${FREETYPE_INCLUDE_DIRS}) + link_directories(${FREETYPE_LIBRARY_DIRS}) + set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} ${FREETYPE_LIBRARIES}) +endif() # fontforge starts using pkg-config 'correctly' since 2.0.0 pkg_check_modules(FONTFORGE libfontforge>=2.0.0)