diff --git a/CMakeExternals/ITK-4.5.1.patch b/CMakeExternals/ITK-4.5.1.patch index 4b0e8506fa..4ce8bfe0c2 100644 --- a/CMakeExternals/ITK-4.5.1.patch +++ b/CMakeExternals/ITK-4.5.1.patch @@ -1,16 +1,28 @@ -diff -burN ITK-4.5.1/CMake/UseITK.cmake ITK-src/CMake/UseITK.cmake +diff -burN ITK-4.5.1/CMake/UseITK.cmake ITK/CMake/UseITK.cmake --- ITK-4.5.1/CMake/UseITK.cmake 2014-02-28 19:46:45.000000000 +0100 -+++ ITK-src/CMake/UseITK.cmake 2015-01-13 12:51:44.513816520 +0100 -@@ -100,7 +101,11 @@ ++++ ITK/CMake/UseITK.cmake 2015-01-29 14:31:00.137911666 +0100 +@@ -100,7 +100,11 @@ unset(LIST_OF_FACTORY_NAMES) #------------------- -- set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS ITK_IO_FACTORY_REGISTER_MANAGER) + if(NOT NO_DIRECTORY_SCOPED_ITK_COMPILE_DEFINITION) + # We add a target scoped compile definition in MITK manually, to avoid leaking + # the definition to other targets in the same directory or sub-directory. -+ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS ITK_IO_FACTORY_REGISTER_MANAGER) + set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS ITK_IO_FACTORY_REGISTER_MANAGER) + endif() include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}/ITKIOFactoryRegistration) endif() +diff -burN ITK-4.5.1/Modules/Core/Common/include/itkMetaDataObject.h ITK/Modules/Core/Common/include/itkMetaDataObject.h +--- ITK-4.5.1/Modules/Core/Common/include/itkMetaDataObject.h 2014-02-28 19:46:45.000000000 +0100 ++++ ITK/Modules/Core/Common/include/itkMetaDataObject.h 2015-01-29 18:28:24.625091845 +0100 +@@ -70,7 +70,7 @@ + * \ingroup ITKCommon + */ + template< typename MetaDataObjectType > +-class MetaDataObject:public MetaDataObjectBase ++class ITKCommon_EXPORT MetaDataObject:public MetaDataObjectBase + { + public: + /** Smart pointer typedef support. */ +