From e3707a351a005111221b4e2b56148fc163aefa69 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr>
Date: Mon, 16 Mar 2020 10:28:31 +0100
Subject: [PATCH] DOC: Wrong cmake variable name indicated in error message
 (OTB_BUILD_MODULE_AS_STANDALONE)

---
 CMake/OTBModuleExternal.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMake/OTBModuleExternal.cmake b/CMake/OTBModuleExternal.cmake
index f629eeeab4..4badc425a6 100644
--- a/CMake/OTBModuleExternal.cmake
+++ b/CMake/OTBModuleExternal.cmake
@@ -36,7 +36,7 @@ if(NOT EXISTS ${OTB_CMAKE_DIR}/OTBModuleMacros.cmake)
     message(FATAL_ERROR "Modules can only be built against an OTB build tree; "
             "they cannot be built against an OTB install tree. You can build "
             "your module as a standalone CMake project instead, by activating "
-            "the BUILD_MODULE_AS_STANDALONE option. Beware that dependency "
+            "the OTB_BUILD_MODULE_AS_STANDALONE option. Beware that dependency "
             "between remote modules will NOT be tracked.")
   endif()
 endif()
-- 
GitLab