diff --git a/Packaging/Windows/CMakeLists.txt b/Packaging/Windows/CMakeLists.txt index a94b682c541c251d93e3e61830fa3e55a9d0dda4..bfcf03a277a6892d123dd550a6eb1a17e5861390 100644 --- a/Packaging/Windows/CMakeLists.txt +++ b/Packaging/Windows/CMakeLists.txt @@ -45,10 +45,8 @@ endif(NOT GDAL_DATA) # Search all the applications available in the OTB install dir file(GLOB OTB_APPS_LIST ${OTB_DIR}/applications/otbapp_*.dll) # /lib/otb -message("${OTB_DIR}/lib/otb/applications/") - if(NOT OTB_APPS_LIST) - message(WARNING "No OTB-applications detected") + message(FATAL_ERROR "No OTB-applications detected") endif() # Install the applications