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

Kit name and variant short name accessable by variable substitution

Open KoeMai opened this issue 8 years ago • 3 comments

Brief Issue Summary

I use for development different compilers with the same root CmakeList.txt File. It would be helpful to have a separate build directory for each compiler + variant. This speed up the switch between the variants or compiler build environments, because no complete CMake regeneration is needed, only a configure.

Expected:

The build directory path is changable by the settings. I would like to Set into the build directory path over variable substitution the following information:

  • the kit name
  • the short of the variants

Platform and Versions

  • Operating System: Windows 10
  • CMake Version: 3.9
  • VSCode Version: 1.19
  • CMake Tools Extension Version: Plan to us it
  • Compiler/Toolchain: GCC 6.3 Windows and GCC for ARM

KoeMai avatar Dec 23 '17 14:12 KoeMai

I am in the same situation.

This is what I currently have in my workspace settings.json:

"cmake.buildDirectory": "${userHome}/Builds/${workspaceRootFolderName}/${buildType}"

and this is what would be very nice to have:

"cmake.buildDirectory": "${userHome}/Builds/${workspaceRootFolderName}/${buildType}/${kitName}"

Suggesting kitName as a variable that would be available for us to use in settings.json. :smiley:

hermanzdosilovic avatar Jan 11 '18 12:01 hermanzdosilovic

Fixed in #317. Closed. If this issues still persists in the current 0.11.0-beta4, feel free to reopen this one or create a new one.

no-realm avatar Mar 01 '18 14:03 no-realm

PR #317 merged.

no-realm avatar Mar 15 '18 19:03 no-realm