Fix compilation in a directory.

This commit is contained in:
2018-04-01 22:20:49 +02:00
parent 9333d9b4ea
commit 2e7ebe6c47
2 changed files with 13 additions and 7 deletions

16
.vscode/tasks.json vendored
View File

@@ -2,16 +2,19 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"cwd": "${workspaceRoot}/_builds/x86_64_domo-debug/buidlroot/build",
"env": {
"test": "toto"
},
"tasks": [
{
"label": "X86_64 - cmake - domod",
"type": "shell",
"command": "cmake -DSRC_DIR=${workspaceRoot} -DCMAKE_BUILD_TYPE=Debug -DworkspaceRoot=${workspaceRoot} -DCMAKE_TOOLCHAIN_FILE=${workspaceRoot}/bsp/cmake-modules/toolchain-buildroot.cmake ${workspaceRoot}/src/prog/domod/builders/cmake",
"command": "mkdir -p ${BUILD_DIR}/domo && cd ${BUILD_DIR}/domo && cmake -DSRC_DIR=${workspaceRoot} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=${workspaceRoot}/bsp/cmake-modules/toolchain-buildroot.cmake ${workspaceRoot}/src/prog/domod/builders/cmake",
"group": "build",
"options": {
"cwd": "${workspaceRoot}/_builds/x86_64_domo-debug/buildroot/build/",
"env": {
"BUILD_DIR": "${workspaceRoot}/_builds/x86_64_domo-debug/buildroot/build/"
}
},
"presentation": {
"echo": true,
"reveal": "always"
@@ -19,6 +22,9 @@
},
{
"label": "X86_64 - make - domod",
"options": {
"cwd": "${workspaceRoot}/_builds/x86_64_domo-debug/buildroot/build/domo",
},
"type": "shell",
"command": "make",
"group": "build",