-
Notifications
You must be signed in to change notification settings - Fork 502
Closed
Description
Brief Issue Summary
Repro steps:
- Create a new folder named 'Test' and open it with vscode.
- Create a file named CMakeLists.txt with the following content:
cmake_minimum_required(VERSION 3.8)
project(Test)
add_executable(Test "main.cpp")
- Create a file named test.cpp with the following content:
#include <iostream>
auto main() -> int { std::cout << "hello world" << std::endl; }
- Create a file named CMakePresets.json with the following content:
{
"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”
6. Run command: “CMake: Add configure preset”
7. Select “custom”
8. Enter the name of the preset:”Custom configure preset”
9. Run command: “CMake:Select configure preset”
10. Watch drop-down list
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
Metadata
Metadata
Assignees
Labels
buga bug in the producta bug in the product
Type
Projects
Status
Completed