Wrong cmake variable name indicated in error message
Description
cmake fails with error message asking to set a vairable that doesn't exists.
OTB-7.0.0-Linux64/lib/cmake/OTB-7.0/OTBModuleExternal.cmake:36 (message):
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 between remote modules will NOT be tracked.
Call Stack (most recent call first):
CMakeLists.txt:14 (include)
BUILD_MODULE_AS_STANDALONE
is not check in OTBModuleExternal.cmake. Actual name of variable is
OTB_BUILD_MODULE_AS_STANDALONE
.
Steps to reproduce
run cmake on a remote module
Configuration information
OS, OTB version or tag, information related to build (binaries, superbuild, system libs ...)