diff --git a/CMake/OTBModuleExternal.cmake b/CMake/OTBModuleExternal.cmake
index 50494ff911a550a2a19dfa039e6e57d8a7875403..f629eeeab4d37cc4108f85b6b958bbc428597155 100644
--- a/CMake/OTBModuleExternal.cmake
+++ b/CMake/OTBModuleExternal.cmake
@@ -33,17 +33,17 @@ if(NOT OTB_VERSION VERSION_GREATER "5.2")
 endif()
 if(NOT EXISTS ${OTB_CMAKE_DIR}/OTBModuleMacros.cmake)
   if(NOT OTB_BUILD_MODULE_AS_STANDALONE)
-    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 between remote \
-modules will NOT be tracked.")
+    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 "
+            "between remote modules will NOT be tracked.")
   endif()
 endif()
 
 if(OTB_BUILD_MODULE_AS_STANDALONE)
-  message(STATUS "You are building this module as a standalone CMake project. \
-    Beware that dependencies to other remote modules will not be tracked.")
+  message(STATUS "You are building this module as a standalone CMake project. "
+          "Beware that dependencies to other remote modules will not be tracked.")
   include(OTBStandaloneModuleMacros)
   otb_module_impl()
 else()