From bfcbcaeb167e410958c6b1d413739ea723536c9b Mon Sep 17 00:00:00 2001 From: Jonathan Goldfarb Date: Wed, 10 Oct 2018 20:12:56 -0400 Subject: [PATCH] Add patch to CI so we can use include files outside the system include directory --- .travis.yml | 2 +- CMakeLists.txt.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 CMakeLists.txt.patch diff --git a/.travis.yml b/.travis.yml index d99690a..b4a558e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -121,7 +121,7 @@ before_install: before_script: - export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/usr/lib:$LD_LIBRARY_PATH - export PKG_CONFIG_PATH=${TRAVIS_BUILD_DIR}/usr/lib/pkgconfig:$PKG_CONFIG_PATH - - cat ${TRAVIS_BUILD_DIR}/usr/lib/pkgconfig/poppler.pc + - patch < CMakeLists.txt.patch - mkdir build && cd build && cmake -DENABLE_SVG=ON -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/usr .. script: diff --git a/CMakeLists.txt.patch b/CMakeLists.txt.patch new file mode 100644 index 0000000..7d70e4a --- /dev/null +++ b/CMakeLists.txt.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 135e02f..97c7035 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -7,6 +7,7 @@ cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR) + + option(ENABLE_SVG "Enable SVG support, for generating SVG background images and converting Type 3 fonts" ON) + ++include_directories(${CMAKE_INSTALL_PREFIX}/include) + include_directories(${CMAKE_SOURCE_DIR}/src) + + set(PDF2HTMLEX_VERSION "0.15.0")