Skip to content

Commit

Permalink
BUG: Enable using only FFT Factory Register Manager
Browse files Browse the repository at this point in the history
Generate FFT factory register manager when
ITK_NO_IO_FACTORY_REGISTER_MANAGER is set to 1.
  • Loading branch information
blowekamp committed Jan 6, 2022
1 parent ecd025e commit 42b6023
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMake/UseITK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@ foreach(_factory_name ${ITK_FACTORY_LIST})
set(${_format}_${factory_lc}_module_name ${Module})
set(${_format}_${factory_lc}_factory_name ${_format}${_factory_name})
endforeach()
if(NOT ITK_NO_IO_FACTORY_REGISTER_MANAGER)
if(_factory_name MATCHES "IO" AND ITK_NO_IO_FACTORY_REGISTER_MANAGER)
# pass generation IO factory registration
elseif(_factory_name MATCHES "FFT" AND ITK_NO_FFT_FACTORY_REGISTER_MANAGER)
# pass generation of FFT factory registration
else()
_configure_FactoryRegisterManager("${_factory_name}" "${LIST_OF_${factory_uc}_FORMATS}")
endif()
endforeach()
Expand Down

0 comments on commit 42b6023

Please sign in to comment.