vscode-cmake-tools
vscode-cmake-tools copied to clipboard
Using "Launch target" doesn't allow reading files from the project root due to weird cwd
Brief Issue Summary
Clicking "Launch target" runs the resulting executable with cwd = build/Debug
. This means it cannot access e.g. the assets
folder in the project root, which is a major inconvenience when multiple people are working on the same project and have to be instructed on copying that directory manually.
I haven't been able to find a cross-platform way to automate this besides using a file(COPY ...)
hack or modifying the extension config, but it just feels wrong. Is there a different solution that works with the stock settings.json
so anybody could just jump right in?
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response