vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

Build log always shows source directory even when using out of source builds

Open an3l opened this issue 1 year ago • 1 comments

Brief Issue Summary

When build the project using out of source build directory (vscode-build ), log still shows source directory (10.11 below)

[main] Building folder: 10.11
[build] Starting build
[proc] Executing command: /usr/local/bin/cmake --build /home/anel/GitHub/mariadb/server/build/vscode-build --config Debug --target all --

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

From file cmakeProject.js can be seen that only current folderName is used (source directory). It should be binaryDir IMHO.

Suggested fix should be

log.info(localize('run.build', 'Building folder: {0}', this.binaryDir ? this.binaryDir : this.folderName ), (targets && targets.length > 0) ? targets.join(', ') : '');

an3l avatar Aug 21 '23 08:08 an3l

Thanks for the heads up! I'll mark this as a bug and tag it. We welcome OSS contribution and would greatly appreciate you contributing this fix!

gcampbell-msft avatar Aug 23 '23 13:08 gcampbell-msft

Closed, fixed in #3778

gcampbell-msft avatar Jun 24 '24 15:06 gcampbell-msft

@gcampbell-msft I forgot about this to contribute, glad to see it is fixed. Thanks

an3l avatar Jun 24 '24 15:06 an3l