From c9571406426e3d486a38252950eaaad85fc53c73 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 10 Sep 2012 21:38:04 +0800 Subject: [PATCH] fix cmake --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 792b319..d5b6850 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,10 +8,6 @@ pkg_check_modules(POPPLER REQUIRED poppler>=0.20.0) include_directories(${POPPLER_INCLUDE_DIRS}) link_directories(${POPPLER_LIBRARY_DIRS}) -find_package(Boost REQUIRED COMPONENTS program_options) -include_directories(${Boost_INCLUDE_DIRS}) -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") @@ -23,7 +19,7 @@ endif() set(FF_LIB_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}fontforge${CMAKE_SHARED_LIBRARY_SUFFIX}) -find_library(FF_LIB FF_LIB_NAME) +find_library(FF_LIB ${FF_LIB_NAME}) if(FF_LIB) message("Found ${FF_LIB_NAME}: ${FF_LIB}") set(FONTFORGE_LIBRARIES ${FF_LIB})