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

workaround of boost::system dependency

This commit is contained in:
Lu Wang 2012-08-14 23:35:53 +08:00
parent 7c344bc2e4
commit 786ec140f4
2 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@ find_package(PkgConfig)
pkg_check_modules(POPPLER REQUIRED poppler)
include_directories(${POPPLER_INCLUDE_DIRS})
link_directories ( ${POPPLER_LIBRARY_DIRS} )
find_package(Boost REQUIRED COMPONENTS program_options)
find_package(Boost REQUIRED COMPONENTS program_options filesystem)
include_directories(${Boost_INCLUDE_DIRS})
link_directories ( ${Boost_LIBRARY_DIRS} )
include_directories(src)
@ -37,7 +37,9 @@ add_executable(pdf2htmlEX
src/util.h
src/config.h)
target_link_libraries(pdf2htmlEX poppler boost_program_options boost_filesystem)
#link boost::system temporarily... maybe a bug of boost
#target_link_libraries(pdf2htmlEX poppler boost_program_options boost_filesystem)
target_link_libraries(pdf2htmlEX poppler boost_program_options boost_filesystem boost_system)
install (TARGETS pdf2htmlEX DESTINATION lib/pdf2htmlEX)
install (PROGRAMS "bin/pdf2htmlEX" DESTINATION bin)

View File

@ -31,11 +31,11 @@ using std::copy;
using boost::archive::iterators::base64_from_binary;
using boost::archive::iterators::transform_width;
// mute gcc
// mute gcc warning of unused function
namespace
{
template <class T>
void dummy1(){ auto _ = &mapUCS2; }
void dummy(){ auto _ = &mapUCS2; }
}
static inline bool _equal(double x, double y) { return std::abs(x-y) < EPS; }