File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -187,10 +187,14 @@ function(_itk_configure_FactoryRegisterManager factory_type formats)
187187 if (aliased_target_name)
188188 set (_meta_module ${aliased_target_name} )
189189 endif ()
190- target_include_directories (
191- ${_meta_module}
192- INTERFACE
193- "$<BUILD_INTERFACE :${CMAKE_CURRENT_BINARY_DIR} /ITKFactoryRegistration >"
190+ # Override the include directories to the current generated FactoryRegistration path.
191+ # Enables multiple calls to adding factories with different sets of factories, in a project.
192+ set_property (
193+ TARGET
194+ ${_meta_module}
195+ PROPERTY
196+ INTERFACE_INCLUDE_DIRECTORIES
197+ "$<BUILD_INTERFACE :${CMAKE_CURRENT_BINARY_DIR} /ITKFactoryRegistration >"
194198 )
195199endfunction ()
196200
You can’t perform that action at this time.
0 commit comments