Fix build when libtiff exists on system

On OSX at least, if you have libtiff in your system include path,
it will use that instead of the bundled modified version even if
FindTIFF.cmake locates the correct version. This commit fixes that
by making sure the libtiff include directory is before the system
include paths.
This commit is contained in:
Michael Cullen 2016-03-28 14:44:36 +01:00
parent 25e5605c50
commit b49802832b

View file

@ -184,6 +184,8 @@ else()
message("LZO:" ${LZO_INCLUDE_DIR})
endif()
include_directories(BEFORE ${TIFF_INCLUDE_DIR})
find_path(BOOST_ROOT include/boost boost HINTS ${THIRDPARTY_LIBS_HINTS} PATH_SUFFIXES boost155/1.55.0_1 boost/boost_1_55_0/)
find_package(Boost 1.55 EXACT REQUIRED)