From dc117e7c907730640c854da69a29b2ea33cae8ca Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Sat, 9 May 2026 06:47:57 -0500 Subject: [PATCH] COMP: Replace dynamic DESCRIPTION in PolarTransform itk-module.cmake Drop the file(READ README.md DOCUMENTATION) preamble and replace DESCRIPTION "${DOCUMENTATION}" with a static one-liner. itk_module() is a CMake macro, so ARGN re-tokenizes its arguments and list-splits any embedded ';' characters. The PolarTransform README contains 4 semicolons, producing 4 spurious "Unknown argument" AUTHOR_WARNINGs from CMake/ITKModuleMacros.cmake:111 on every configure. Same canonical fix applied in PR #6220 to RLEImage, SplitComponents, IOFDF, IOMeshMZ3, IOMeshSTL; PolarTransform was missed because it landed in parallel. The v4 ingestion pipeline (PR #6204) prevents this regression via sanitize-history.py:patch_dynamic_description. --- .../Filtering/PolarTransform/itk-module.cmake | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Modules/Filtering/PolarTransform/itk-module.cmake b/Modules/Filtering/PolarTransform/itk-module.cmake index 3385c1af928..a2c939b82bb 100644 --- a/Modules/Filtering/PolarTransform/itk-module.cmake +++ b/Modules/Filtering/PolarTransform/itk-module.cmake @@ -1,23 +1,11 @@ -# the top-level README is used for describing this module, just -# re-used it for documentation here -get_filename_component(MY_CURRENT_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) -file(READ "${MY_CURRENT_DIR}/README.md" DOCUMENTATION) - -# itk_module() defines the module dependencies in PolarTransform -# PolarTransform depends on ITKCommon -# The testing module in PolarTransform depends on ITKTestKernel -# and ITKMetaIO(besides PolarTransform and ITKCore) -# By convention those modules outside of ITK are not prefixed with -# ITK. - -# define the dependencies of the include module and the tests itk_module( PolarTransform COMPILE_DEPENDS ITKTransform TEST_DEPENDS ITKTestKernel - DESCRIPTION "${DOCUMENTATION}" + DESCRIPTION + "Forward and inverse Cartesian/polar coordinate transforms for itk::Image." EXCLUDE_FROM_DEFAULT ENABLE_SHARED )