Skip to content

Commit 8055fc7

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 2deed6b commit 8055fc7

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
# Maintainer: Matt McCormick <matt.mccormick@kitware.com>
2-
set(
3-
DOCUMENTATION
4-
"This module contains a filter to compute higher order
5-
accurate numerical derivatives and gradients from an input scalar image.
6-
Higher Order Accurate Derivative and Gradient Calculation in ITK
7-
https://www.insight-journal.org/browse/publication/775
8-
https://hdl.handle.net/10380/3231
9-
"
10-
)
11-
122
itk_module(
133
HigherOrderAccurateGradient
144
DEPENDS
@@ -19,5 +9,6 @@ itk_module(
199
TEST_DEPENDS
2010
ITKTestKernel
2111
EXCLUDE_FROM_DEFAULT
22-
DESCRIPTION "${DOCUMENTATION}"
12+
DESCRIPTION
13+
"Filters that compute higher-order accurate numerical derivatives and gradients from a scalar image (Insight Journal: https://www.insight-journal.org/browse/publication/775, https://hdl.handle.net/10380/3231)."
2314
)

0 commit comments

Comments
 (0)