I have 2 tasks in my tasks.json. The first is CMAKE which runs correctly. The second is make which depends on the CMAKE being run first. When I use the option dependsOn cmake and run the task make, it only runs the cmake task but no the make task afterwards.
{ "version": "2.0.0", "command": "sh", "args": [ "-c" ], "presentation": { "echo": true, "reveal": "always", "focus": true, "panel": "new" }, "tasks": [ { "label": "cmake", "type": "shell", "options": { "cwd": "${workspaceRoot}/build" }, "args": [ "cmake -DCMAKE_BUILD_TYPE=Debug .." ] }, { "label": "make", "type": "shell", "args": [ "make -j8" ], "options": { "cwd": "${workspaceRoot}/build" }, "dependsOn": [ "cmake" ], "group": { "kind": "build", "isDefault": true }, "problemMatcher": [ "$gcc" ] } ] } Output of the executed make task:
Executing task: sh -c 'cmake -DCMAKE_BUILD_TYPE=Debug ..' < -- Configuring done -- Generating done -- Build files have been written to: /home/gertjan/multiply/build Press any key to close the terminal.