Skip to content

Hook custom task to CMake:build task #2785

Closed Answered by elahehrashedi
dskulj1 asked this question in Q&A
Discussion options

You must be logged in to vote

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 the default task.

		{
			"type": "cmake",
			"label": "CMake: build",
			"command": "build",
			"targets": [
				"myTarget"
			],
			"group":  {
				"isDefault": true,
				"kind": "build"
			},
			"problemMatcher": [],
			"detail": "CMake template build task"
		},

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@elahehrashedi
Comment options

@dskulj1
Comment options

Answer selected by dskulj1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants