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:
parent
25e5605c50
commit
b49802832b
1 changed files with 2 additions and 0 deletions
|
@ -184,6 +184,8 @@ else()
|
||||||
message("LZO:" ${LZO_INCLUDE_DIR})
|
message("LZO:" ${LZO_INCLUDE_DIR})
|
||||||
endif()
|
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_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)
|
find_package(Boost 1.55 EXACT REQUIRED)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue