Skip to content

Commit 0af32ec

Browse files
committed
COMP: Inline static DESCRIPTION in itk-module.cmake
Replace the set(DOCUMENTATION "...") + DESCRIPTION "${DOCUMENTATION}" indirection with a static one-liner literal. itk_module() is a CMake macro, so ${ARGN} re-tokenizes its arguments and list-splits any embedded ";". A future edit adding a semicolon or "[" to the DOCUMENTATION string would silently produce spurious "Unknown argument" AUTHOR_WARNINGs from CMake/ITKModuleMacros.cmake:111 on every configure (see PRs #6220, #6245). The v4 ingestion pipeline (PR #6204) enforces this via sanitize-history.py:patch_dynamic_description.
1 parent 582f7e8 commit 0af32ec

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
set(
2-
DOCUMENTATION
3-
"N-dimensional textural feature image filters: first-order,
4-
run-length, and co-occurrence (GLCM) features computed over a
5-
sliding window for radiomics and computer-vision pipelines."
6-
)
7-
81
itk_module(
92
TextureFeatures
103
DEPENDS
@@ -18,6 +11,7 @@ itk_module(
1811
ITKImageIntensity
1912
ITKImageNoise
2013
ITKGoogleTest
21-
DESCRIPTION "${DOCUMENTATION}"
14+
DESCRIPTION
15+
"N-dimensional textural feature image filters: first-order, run-length, and co-occurrence (GLCM) features computed over a sliding window for radiomics and computer-vision pipelines."
2216
EXCLUDE_FROM_DEFAULT
2317
)

0 commit comments

Comments
 (0)