-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toolset and Platform are swapped when reading from CMakeCache.txt #1065
Comments
Thanks for catching this. Should be an easy fix. |
I confirm this bug which is pretty annoying since it forces me to recreate the build directory every time I restart VS Code. |
@Celeborn2BeAlive I have been getting away with just deleting Still a pain, but at least you don't lose your built object files. |
The bug may be temporarily worked around by enabling cmake server in preferences. |
Fixed in 1.3.1 |
Brief Issue Summary
When a
cmake.toolset
andcmake.platform
are set insettings.json
, they are used correctly on the first CMake configuration.After restarting VS Code, on subsequent configurations, these values are mixed up when read from
CMakeCache.txt
.In
src/drivers/cmfileap-driveri.ts
(line 68 in thedevelop
branch),toolset
should beplatform
andplatform
should betoolset
.May relate to #222.
Expected:
First CMake Configuration works, all subsequent CMake configurations work. CMake command line should be:
Apparent Behavior:
For subsequent builds, platform and toolset are reversed, resulting in the error:
Example:
settings.json
:CMake Tools Log
Platform and Versions
The text was updated successfully, but these errors were encountered: