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:
parent
7c344bc2e4
commit
786ec140f4
@ -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)
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user