Hook custom task to CMake:build task #2785
-
Is it possible to create a custom task in the task.json file and hook that task to the original CMake:Build task, so they both are run on the Build button from the CMake toolbar? |
Beta Was this translation helpful? Give feedback.
Answered by
elahehrashedi
Oct 11, 2022
Replies: 1 comment 2 replies
-
use this setting:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
dskulj1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use this setting:
"cmake.buildTask": true
to use tasks instead of the normal build process. Using this setting, when you hit the build button, you will be asked to choose a task to run. In case you want to bypass the step in which you have to choose the build task, you can define your build task as thedefault
task.