From f4a5628ce43c43f74d88ae70e6b955a5f80bf845 Mon Sep 17 00:00:00 2001 From: Cyrille Valladeau <cyrille.valladeau@c-s.fr> Date: Wed, 24 Nov 2010 15:56:46 +0100 Subject: [PATCH] ENH : include GDAL first --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff70d7c90d..687346f4ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,11 +114,13 @@ SET(CXX_TEST_PATH ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) #----------------------------------------------------------------------------- # External libraries -INCLUDE(ImportLibLAS) + +# Put GDAL first, since on Windows, include dirs for other libs (curl, expat, mapnik) contain gdal 1.5 includes +INCLUDE(ImportGdal) +INCLUDE(ImportLibLAS) # depends on ImportGdal INCLUDE(ImportExpat) INCLUDE(ImportITK) INCLUDE(ImportJPEG2000) -INCLUDE(ImportGdal) INCLUDE(ImportFLTK) # depends on ImportGdal INCLUDE(ImportCurl) INCLUDE(ImportPqxx) @@ -198,9 +200,7 @@ INCLUDE(PreventInstallOnBuildTree) INCLUDE_DIRECTORIES ( ${OTB_BINARY_DIR} - ${OTB_SOURCE_DIR} - ${OTB_INCLUDE_DIRS} - ${OTB_LIBRARY_PATH} ) + ${OTB_INCLUDE_DIRS} ) #----------------------------------------------------------------------------- # Option for display all developpment message -- GitLab