VSCode: Add vcpkg toolchain for CMake Tools support - #572
Daniel Marshall (SuperWig) wants to merge 1 commit into
Conversation
|
Since CMake Tools default build directory is "cmake.buildDirectory": "${workspaceFolder}/out/build/${buildKit}",To mimic Visual Studio's default build directory. Albeit with less nice naming |
|
Doesn't this break someone who is using an "installed" vcpkg rather than our submodule? |
I think it kinda does, workspace settings override global or user settings, and I happen to set the vcpkg toolchain in my user settings This also sorta breaks people building using "other" boost libraries (from wherever). And people who don't use the toolchain (I sometimes just set CMAKE_PREFIX_PATH, or use vcpkg export and then set CMAKE_INSTALL_PREFIX to that). |
|
I see, in that case this change would break me :( |
|
Well bugger. I don't suppose there's a way to change that behaviour? From my quick search there doesn't seem to be :/ |
|
If the STL submodule vcpkg is the only one you regularly use you can |
|
This is for VS Code not VS. With VS the CMake settings JSON isn't tracked by this repo so modifying it doesn't mean The desire for this was mainly due to that time where the latest Boost wasn't supported so at the time the toolchain file in my settings didn't work so I added this one's to the workspace settings (Didn't mean to close and comment just now though will keep it closed due to the issues stated above). |
Hmmm it seems like a bug that VS Code doesn't listen to the signal that |
|
Huh, could have sworn 2 things before double checking just now
I'm thinking 1) was me misremembering the time when I altered it due to that Boost issue noted above. 🤷♂️ |
Description
Resolves #571
Checklist
Be sure you've read README.md and understand the scope of this repo.
If you're unsure about a box, leave it unchecked. A maintainer will help you.
_Uglyas perhttps://eel.is/c++draft/lex.name#3.1 or there are no product code changes.
verified by an STL maintainer before automated testing is enabled on GitHub,
leave this unchecked for initial submission).
members, adding virtual functions, changing whether a type is an aggregate
or trivially copyable, etc.).
the C++ Working Draft (including any cited standards), other WG21 papers
(excluding reference implementations outside of proposed standard wording),
and LWG issues as reference material. If they were derived from a project
that's already listed in NOTICE.txt, that's fine, but please mention it.
If they were derived from any other project (including Boost and libc++,
which are not yet listed in NOTICE.txt), you must mention it here,
so we can determine whether the license is compatible and what else needs
to be done.