1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

don't include freetype without ENABLE_SVG

This commit is contained in:
Lu Wang 2013-09-18 18:02:53 +08:00
parent dd9d21cb19
commit 7f57ff316e

View File

@ -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})
endif()
# fontforge starts using pkg-config 'correctly' since 2.0.0
pkg_check_modules(FONTFORGE libfontforge>=2.0.0)