From 8dbccd91b4707187753ff7b287d564549ac0b4e2 Mon Sep 17 00:00:00 2001
From: Rashad Kanavath <rashad.kanavath@c-s.fr>
Date: Mon, 31 Jul 2017 11:04:16 +0200
Subject: [PATCH] BUG: fix mantis #1444

---
 Modules/Radiometry/OpticalCalibration/test/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Modules/Radiometry/OpticalCalibration/test/CMakeLists.txt b/Modules/Radiometry/OpticalCalibration/test/CMakeLists.txt
index 3221ced64e..dc0a87b1ec 100644
--- a/Modules/Radiometry/OpticalCalibration/test/CMakeLists.txt
+++ b/Modules/Radiometry/OpticalCalibration/test/CMakeLists.txt
@@ -249,7 +249,7 @@ otb_add_test(NAME raTuLuminanceToImageImageFilterNew COMMAND otbOpticalCalibrati
 #FIXME Those tests have performing local copies of header, baselines...They were migrate "as it" for now in version 5.0 but
 # something cleaner could be done in the future.
 #TODO Rewrite those tests and ban local copy and cmake trickery
-if(OTB_DATA_USE_LARGEINPUT)
+if(OTB_DATA_USE_LARGEINPUT AND OTB_DATA_ROOT)
 
   set(TOULOUSEQBDIR ${TEMP}/OpticalCalibLumToImQBPAN)
   file(MAKE_DIRECTORY ${TOULOUSEQBDIR})
-- 
GitLab