File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ macro(itk_generate_factory_registration)
204
204
set (_factory_list ${variadic_args} )
205
205
endif ()
206
206
207
- foreach (_factory_name ${ITK_FACTORY_LIST } )
207
+ foreach (_factory_name ${_factory_list } )
208
208
string (TOUPPER ${_factory_name} factory_uc )
209
209
string (TOLOWER ${_factory_name} factory_lc )
210
210
set (LIST_OF_${factory_uc}_FORMATS "" )
@@ -227,8 +227,9 @@ macro(itk_generate_factory_registration)
227
227
if (ITK_NO_${factory_uc}_FACTORY_REGISTER_MANAGER )
228
228
# pass generation this factory registration
229
229
elseif (_factory_name MATCHES "IO" AND ITK_NO_IO_FACTORY_REGISTER_MANAGER )
230
- message (WARNING "ITK_NO_IO_FACTORY_REGISTER_MANAGER CMake variable
231
- is deprecated. Use ITK_NO_${_factory_name} _FACTORY_REGISTER_MANAGER" )
230
+ message (WARNING
231
+ "ITK_NO_IO_FACTORY_REGISTER_MANAGER CMake variable is "
232
+ "deprecated. Use ITK_NO_${factory_uc} _FACTORY_REGISTER_MANAGER" )
232
233
else ()
233
234
_itk_configure_FactoryRegisterManager ("${_factory_name} " "${LIST_OF_${factory_uc} _FORMATS}" )
234
235
endif ()
Original file line number Diff line number Diff line change @@ -51,8 +51,9 @@ foreach(_factory_name ${ITK_FACTORY_LIST})
51
51
if (_factory_name MATCHES "IO" AND
52
52
ITK_NO_IO_FACTORY_REGISTER_MANAGER )
53
53
if ( "${ITK_VERSION_MAJOR} .${ITK_VERSION_MINOR} " VERSION_GREATER_EQUAL "5.4" )
54
- message (WARNING "ITK_NO_IO_FACTORY_REGISTER_MANAGER CMake
55
- variable is deprecated. Use ITK_NO_${_factory_uc} _FACTORY_REGISTER_MANAGER" )
54
+ message (WARNING
55
+ "ITK_NO_IO_FACTORY_REGISTER_MANAGER CMake variable is "
56
+ "deprecated. Use ITK_NO_${_factory_uc} _FACTORY_REGISTER_MANAGER" )
56
57
endif ()
57
58
continue ()
58
59
endif ()
You can’t perform that action at this time.
0 commit comments