Skip to content

Commit

Permalink
ENH: Remove alias cmake macro
Browse files Browse the repository at this point in the history
Remove the itk_end_wrap_modules_all_generators macro
that was only called from the itk_end_wrap_modules macro
as a simple alias.
  • Loading branch information
hjmjohnson committed Feb 23, 2022
1 parent 0e84a05 commit 7348e44
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
16 changes: 0 additions & 16 deletions Wrapping/Generators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,6 @@ macro(itk_wrap_modules_all_generators)
endif()
endmacro()

macro(itk_end_wrap_modules_all_generators)
itk_wrap_modules_set_prefix()
if(${module_prefix}_WRAP_PYTHON)
itk_end_wrap_modules_python()
endif()
if(${module_prefix}_WRAP_TCL)
itk_end_wrap_modules_tcl()
endif()
if(${module_prefix}_WRAP_JAVA)
itk_end_wrap_modules_java()
endif()
if(${module_prefix}_WRAP_RUBY)
itk_end_wrap_modules_ruby()
endif()
endmacro()


macro(itk_wrap_module_all_generators library_name)
itk_wrap_modules_set_prefix()
Expand Down
15 changes: 13 additions & 2 deletions Wrapping/TypedefMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,22 @@ macro(itk_wrap_modules)
endmacro()

macro(itk_end_wrap_modules)
itk_end_wrap_modules_all_generators()
itk_wrap_modules_set_prefix()
if(${module_prefix}_WRAP_PYTHON)
itk_end_wrap_modules_python()
endif()
if(${module_prefix}_WRAP_TCL)
itk_end_wrap_modules_tcl()
endif()
if(${module_prefix}_WRAP_JAVA)
itk_end_wrap_modules_java()
endif()
if(${module_prefix}_WRAP_RUBY)
itk_end_wrap_modules_ruby()
endif()
endmacro()



# Support for additional include directories of each module
# WARNING: Each module must set this variable BEFORE calling itk_wrap_module
# TODO: is this the place place for this?
Expand Down

0 comments on commit 7348e44

Please sign in to comment.