microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.47k stars 454 forks source link

can not find build kit #986

Closed degawong closed 4 years ago

degawong commented 4 years ago

微信图片_20191225111613

Brief Issue Summary

already have visual studio 2013 15 17 19 and gcc 9.2 installed,and env varible setted,when I choose the build kit, only several vs2019 options to be choosen

Platform and Versions

Other Notes/Information

bobbrow commented 4 years ago

We rely on vswhere.exe to locate Visual Studio installations. It states that it has limited support for VS 2015 and earlier versions, but we'd need to look into it more.

You can also try adding the path to your GCC installation to:

    "cmake.mingwSearchDirs": [
        "C:\\path\\to\\mingw"
    ],

Make sure you specify the parent folder of the bin folder. Then rerun the "CMake: Scan for Kits" command.

degawong commented 4 years ago

thank you bobbrw,CMake: Scan for Kits works for me.

bobbrow commented 4 years ago

Thanks for confirming. Let us know if you need anything else.