Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#4258 from thewtex/group-…
Browse files Browse the repository at this point in the history
…multiline

Multiline module group definition
  • Loading branch information
thewtex authored Oct 8, 2023
2 parents bdcb9e3 + 3568eee commit 90320e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CMake/ITKGroups.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ foreach(group ${group_list})
set(_${group}_module_list)
file(GLOB_RECURSE _${group}_module_files ${ITK_SOURCE_DIR}/Modules/${group}/itk-module.cmake)
foreach(_module_file ${_${group}_module_files})
file(STRINGS ${_module_file} _module_line REGEX "itk_module[ \n]*\\([ \n]*[A-Za-z0-9]*")
file(READ ${_module_file} _module_file_content)
string(
REGEX MATCH
"(\\([ \n]*)([A-Za-z0-9]*)"
"itk_module[ \n]*(\\([ \n]*)([A-Za-z0-9]*)"
_module_name
${_module_line})
${_module_file_content})
set(_module_name ${CMAKE_MATCH_2})
set(_${_module_name}_module_line ${_module_line})
list(APPEND _${group}_module_list ${_module_name})
Expand Down
2 changes: 1 addition & 1 deletion CMake/ITKModuleEnablement.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This script sorts out the module dependencies, provides user options for customizing
# the list of modules to be built, and enables modules accordingly.

macro(itk_module_load_DAG)
macro(itk_module_load_dag)
set(ITK_MODULES_ALL)
file(
GLOB_RECURSE meta
Expand Down

0 comments on commit 90320e2

Please sign in to comment.