From ec03d18658acfd56148ecd7cef86f024f0ab1377 Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Thu, 5 Apr 2018 15:35:59 +0200
Subject: [PATCH] COMP: missing OTBImageIO_EXPORT macro for class
 MultiImageFileWriter

---
 Modules/IO/ImageIO/include/otbMultiImageFileWriter.h | 3 ++-
 Modules/IO/ImageIO/otb-module.cmake                  | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Modules/IO/ImageIO/include/otbMultiImageFileWriter.h b/Modules/IO/ImageIO/include/otbMultiImageFileWriter.h
index 0d2a1fc8af..5d2cf24f80 100644
--- a/Modules/IO/ImageIO/include/otbMultiImageFileWriter.h
+++ b/Modules/IO/ImageIO/include/otbMultiImageFileWriter.h
@@ -26,6 +26,7 @@
 #include "itkImageBase.h"
 #include "itkProcessObject.h"
 #include "itkImageIOBase.h"
+#include "OTBImageIOExport.h"
 
 #include <boost/shared_ptr.hpp>
 
@@ -41,7 +42,7 @@ namespace otb
  *  is interpreted on the first input to deduce the number of streams. This
  *  number of streams is then used to split the other inputs.
  */
-class MultiImageFileWriter: public itk::ProcessObject
+class OTBImageIO_EXPORT MultiImageFileWriter: public itk::ProcessObject
 {
 public:
   /** Standard class typedefs. */
diff --git a/Modules/IO/ImageIO/otb-module.cmake b/Modules/IO/ImageIO/otb-module.cmake
index 552d431d5a..d592ba8b08 100644
--- a/Modules/IO/ImageIO/otb-module.cmake
+++ b/Modules/IO/ImageIO/otb-module.cmake
@@ -22,6 +22,7 @@ set(DOCUMENTATION "This module contains classes related to the reading and the
 writing of remote sensing images.")
 
 otb_module(OTBImageIO
+  ENABLE_SHARED
   DEPENDS
     OTBBoostAdapters
     OTBCommon
-- 
GitLab