Skip to content

Add setting "postConfigureTask" - #4566

Merged
Hannia Valera (hanniavalera) merged 5 commits into
microsoft:mainfrom
Francois-Le:main
Feb 23, 2026
Merged

Hannia Valera (hanniavalera) merged 5 commits into
microsoft:mainfrom
Francois-Le:main

Conversation

@Francois-Le

Copy link
Copy Markdown
Contributor

This changes introduce a new feature

The following changes are proposed:

  • Add a new setting "postConfigureTask"
    • If set, the task bearing the name set is called every time cmake configure have run sucessfully.

The purpose of this change

The purpose is enable users to set up tasks after cmake configure to enable automation.

Other Notes/Information

My particular use-case for this feature is post-processing the output of compile_commands.json generated by cmake. I am aware of the setting "copyCompileCommands" but in my case I need to, additionally to copying it, modify it. Adding a task automation is a generic solution to achieve that goal.

@snehara99

Copy link
Copy Markdown
Contributor

Hi Francois-Le , thanks for this contribution! I had to make a small update for the setting description and the changelog, but otherwise it looks good and will be merged in shortly :)

@hanniavalera
Hannia Valera (hanniavalera) merged commit 074387b into microsoft:main Feb 23, 2026
4 checks passed
snehara99 added a commit that referenced this pull request Feb 24, 2026
snehara99 added a commit that referenced this pull request Feb 24, 2026
snehara99 added a commit that referenced this pull request Feb 24, 2026
@snehara99

Copy link
Copy Markdown
Contributor

Francois-Le I had to revert this merge because I forgot to ask you to agree to our Contributor License Agreement (CLA). Since I can't reopen a merged PR, I created a PR here that undoes this reversion: #4751

There you'll see the request to agree to our CLA. This will need to be completed before your change can be merged in.

@Francois-Le

Copy link
Copy Markdown
Contributor Author

snehara99, Thanks for taking a look at my PR, I've accepted the CLA on the other PR, let me know if you need anything else from me. Thanks.

snehara99 added a commit that referenced this pull request Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants