Commit afe5b08e authored by Rashad Kanavath's avatar Rashad Kanavath

PKG: ask for OTB install directory explicitly

parent fd8c7d09
......@@ -44,6 +44,7 @@ if(OUT_OF_SOURCE_BUILD)
set(Monteverdi_SOURCE_DIR "" CACHE PATH "monteverdi source directory")
set(Monteverdi_BINARY_DIR "" CACHE PATH "monteverdi binary directory")
set(MONTEVERDI_INSTALL_DIR "" CACHE PATH "monteverdi install directory")
set(OTB_INSTALL_DIR "" CACHE PATH "otb install directory")
else()
set(SUPERBUILD_BINARY_DIR "" CACHE PATH "path to superbuild binary directory")
set(SUPERBUILD_INSTALL_DIR "" CACHE PATH "path to superbuild install directory")
......@@ -69,6 +70,7 @@ if(WIN32 OR CMAKE_CROSSCOMPILING)
Monteverdi_SOURCE_DIR
Monteverdi_BINARY_DIR
MONTEVERDI_INSTALL_DIR
OTB_INSTALL_DIR
)
if(NOT DEFINED ${req} OR "${${req}}" STREQUAL "")
message(FATAL_ERROR "you must set ${req}")
......@@ -140,7 +142,7 @@ if(WIN32 OR CMAKE_CROSSCOMPILING)
set(Monteverdi_SOURCE_DIR "${Monteverdi_SOURCE_DIR}")
set(Monteverdi_BINARY_DIR "${Monteverdi_BINARY_DIR}")
set(MONTEVERDI_INSTALL_DIR "${MONTEVERDI_INSTALL_DIR}")
set(OTB_INSTALL_DIR "${OTB_MODULES_DIR}/../../../..")
set(OTB_INSTALL_DIR "${OTB_INSTALL_DIR}")
set(DEPENDENCIES_INSTALL_DIR "${MXE_MXEROOT}/usr/${MXE_ARCH}-w64-mingw32.shared")
set(QT_PLUGINS_DIR "${DEPENDENCIES_INSTALL_DIR}/qt/plugins")
set(QT_TRANSLATIONS_DIR "${DEPENDENCIES_INSTALL_DIR}/qt/translations")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment