Open v-frankwang opened 4 weeks ago
Repro steps:
Create a file named CMakeLists.txt with the following content:
cmake_minimum_required(VERSION 3.8) project(Test) add_executable(Test "main.cpp")
#include <iostream> auto main() -> int { std::cout << "hello world" << std::endl; }
{ "version": 3, "configurePresets": [ { "name": "windows-base", "hidden": true, "generator": "Ninja", "binaryDir": "${sourceDir}/out/build/${presetName}", "installDir": "${sourceDir}/out/install/${presetName}", "cacheVariables": { "CMAKE_C_COMPILER": "cl.exe", "CMAKE_CXX_COMPILER": "cl.exe" }, "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" } }, { "name": "x64-debug", "displayName": "x64 Debug", "inherits": "windows-base", "architecture": { "value": "x64", "strategy": "external" }, "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } }, { "name": "x64-release", "displayName": "x64 Release", "inherits": "x64-debug", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } }, { "name": "x86-debug", "displayName": "x86 Debug", "inherits": "windows-base", "architecture": { "value": "x86", "strategy": "external" }, "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } }, { "name": "x86-release", "displayName": "x86 Release", "inherits": "x86-debug", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } } ] }
5 . Run command: “CMake:configure”
Actual results:
No response
@gcampbell-msft I verified the issue on the latest version:v1.18.42 of CMake tools and it still reproduced, so I reopen this issue.
Actual results:
Brief Issue Summary
Repro steps:
Create a file named CMakeLists.txt with the following content:
5 . Run command: “CMake:configure”
Actual results:![image](https://github.com/microsoft/vscode-cmake-tools/assets/160998958/e2acbcea-4432-4e62-bf3d-a458c38c07b1)
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response