Skip to content

Commit 402d029

Browse files
committed
Updated launch.json to work with whatever directory is set by CMakeTools as the CMake build directory.
1 parent 7551940 commit 402d029

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.vscode/launch.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
"name": "Launch GDB",
1313
"type": "cppdbg",
1414
"request": "launch",
15-
"program": "${workspaceFolder}/build/TacentInstall/UnitTests",
15+
//"program": "${workspaceFolder}/build/TacentInstall/UnitTests",
16+
"program": "${command:cmake.buildDirectory}/TacentInstall/UnitTests",
1617
"args": [],
1718
"stopAtEntry": false,
18-
"cwd": "${workspaceFolder}/build/TacentInstall",
19+
//"cwd": "${workspaceFolder}/build/TacentInstall",
20+
"cwd": "${command:cmake.buildDirectory}/TacentInstall",
1921
"environment": [],
2022
"externalConsole": false,
2123
"MIMode": "gdb",
@@ -32,10 +34,12 @@
3234
"name": "Launch Windows",
3335
"type": "cppvsdbg",
3436
"request": "launch",
35-
"program": "${workspaceFolder}/build/TacentInstall/UnitTests.exe",
37+
//"program": "${workspaceFolder}/build/TacentInstall/UnitTests.exe",
38+
"program": "${command:cmake.buildDirectory}/TacentInstall/UnitTests.exe",
3639
"args": [],
3740
"stopAtEntry": false,
38-
"cwd": "${workspaceFolder}/build/TacentInstall",
41+
//"cwd": "${workspaceFolder}/build/TacentInstall",
42+
"cwd": "${command:cmake.buildDirectory}/TacentInstall",
3943
"environment": [],
4044
"console": "integratedTerminal",
4145
}

0 commit comments

Comments
 (0)