# add the OTB specific CMake modules dir BEFORE the current CMAKE_MODULE_PATH
SET(CMAKE_MODULE_PATH
${OTB_CMAKEMODULE_DIRS}
${CMAKE_MODULE_PATH})
# at the end of this file, CMAKE_MODULE_PATH will be set back to its original value
# this way, the OTb specific FindXXX.cmake are only used in this file
# and do not pollute the user space
# Load settings for the system VXL with which OTB was built, if any.
IF(OTB_USE_SYSTEM_VXL)
# If VXL has already been found, make sure it is the one used to
...
...
@@ -94,45 +106,30 @@ IF(USE_FFTWF OR USE_FFTWD)
ENDIF(USE_FFTWF OR USE_FFTWD)
IF(OTB_USE_EXTERNAL_EXPAT)
FIND_PACKAGE(EXPAT)
IF(EXPAT_FOUND)
# Control expat compatibility
INCLUDE_DIRECTORIES(${EXPAT_INCLUDE_DIR})
ELSE(EXPAT_FOUND)
MESSAGE(FATAL_ERROR
"Cannot use OTB project without EXPAT library. Please set EXPAT_DIR or rebuild OTB and set OTB_USE_EXTERNAL_EXPAT OFF to use INTERNAL EXPAT set on OTB/Utilities repository.")