diff --git a/CMakeLists.txt b/CMakeLists.txt index 06cc6a2b18085837854723ccae443ff770f071b4..5ad62dfb852ac01259825953f764cd945bbd0a34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,6 +213,9 @@ IF(OTB_USE_EXTERNAL_ITK) MESSAGE(FATAL_ERROR "Cannot build OTB project without ITK. Please set ITK_DIR or set OTB_USE_EXTERNAL_ITK OFF to use INTERNAL ITK set on OTB/Utilities repository.") ENDIF(ITK_FOUND) + #Build shared libraries for otb + #By default, if otb use an external itk import the option from the ITK configuration + SET(BUILD_SHARED_LIBS ${ITK_BUILD_SHARED}) ELSE(OTB_USE_EXTERNAL_ITK) # Required to have proper itk headers at first run SET(ITK_SOURCE_DIR ${OTB_SOURCE_DIR}/Utilities/ITK)