You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@gcampbell-msft When there are Windows and Linux options in the CMakePresets.json file, typing the command cmake: select configure preset will only bring up one option: Linux and the Windows option will not appear We cannot reproduce this problem. Could you provide us with some help?
@JVApen Could you give us some additional information? For example, screenshots or reproduced items that will facilitate our investigation of your issue. Thank you very much for your help, please let us know if you have any concerns!
@Yingzi1234 : In the real use-case, I am making use of includes. I'll see if I can create a working reproduction. I do have holidays coming up, so it might take a while before I have this.
@Yingzi1234 You are correct, and this is expected, only those presets that are available on the machine that is being used should be populated. In order to repro with certain presets, the condition should be made to be true, either by opening the project on the correct OS, or by removing the condition as a way to test
Brief Issue Summary
When using 1 CMakePresets.json with the above content in it, 1 of the systems fails to use the right cmake executable.
In this case, I'm using a windows machine to remote SSH into a linux device.
CMake Tools Diagnostics
Debug Log
Additional Information
It looks like the parsing of the presets takes the first occurrence of cmakeExecutable it finds without considering the condition.
The text was updated successfully, but these errors were encountered: