Skip to content

Add CODEGEN keyword to add_custom_command() if supported - #18

Closed
Randalphwa wants to merge 1 commit into
mainfrom
pr/57
Closed

Add CODEGEN keyword to add_custom_command() if supported#18
Randalphwa wants to merge 1 commit into
mainfrom
pr/57

Conversation

@Randalphwa

Copy link
Copy Markdown
Member

Migrated from vector-of-bool/cmrc PR #57 by @craigscott-crascit

If using CMake 3.31 or later, add_custom_command() supports a CODEGEN
keyword. It requires policy CMP0171 to be set to NEW to be recognized.
Add the CODEGEN keyword to these calls if we can so that consumers can
build the codegen CMake target to ensure code generation has been
performed without having to actually compile the generated code.
This is useful for linting CI jobs like clang-tidy.

If using CMake 3.31 or later, add_custom_command() supports a CODEGEN
keyword. It requires policy CMP0171 to be set to NEW to be recognized.
Add the CODEGEN keyword to these calls if we can so that consumers can
build the `codegen` CMake target to ensure code generation has been
performed without having to actually compile the generated code. This is
useful for linting CI jobs like clang-tidy.
@Randalphwa

Copy link
Copy Markdown
Member Author

Closed via PR #31

@Randalphwa Randalphwa closed this Sep 7, 2026
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