Skip to content

Add optional --output flag to expand script - #2467

Merged
blowekamp merged 5 commits into
SimpleITK:mainfrom
blowekamp:expand_script_stdout
Dec 12, 2025
Merged

blowekamp merged 5 commits into
SimpleITK:mainfrom
blowekamp:expand_script_stdout

Conversation

@blowekamp

@blowekamp blowekamp commented Dec 12, 2025 •

Copy link
Copy Markdown
Member

Default the expand script to output to stdout. Add a -o flag to output to a file. This enabled concatenation of outputs in CMake.

@blowekamp
blowekamp force-pushed the expand_script_stdout branch from 4c5e158 to c67045b Compare December 12, 2025 01:48
@blowekamp blowekamp changed the title Expand script stdout Add optional --output flag to expand script Dec 12, 2025
Defaults to output to stdout, with an optional argument to a file.
Save stdout of expanded template in CMake variable then write to
single CMake file. This may improve performance.
@blowekamp
blowekamp force-pushed the expand_script_stdout branch from c67045b to 3314ea9 Compare December 12, 2025 14:51
Use stdout feature to accumulate generate CMake test code, write to a
single file, then include.
@blowekamp
blowekamp requested review from dave3d and zivy December 12, 2025 18:36
Comment thread ExpandTemplateGenerator/ExpandTemplate.py
@blowekamp
blowekamp merged commit 85d2b25 into SimpleITK:main Dec 12, 2025
7 checks passed
@blowekamp
blowekamp deleted the expand_script_stdout branch September 9, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants