-
Notifications
You must be signed in to change notification settings - Fork 430
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
[cpptools] Unknown C++ standard control flag: -std=c++23 #2475
Comments
Thank you for reporting this. As I mentioned in the PR, we'll need to get the |
Thanks, this isn't blocking anything major for me at the moment. But I'm curious - as I asked on the merge request, how does the cpptools or cmake extension know which version of Visual Studio is installed on the user's machine? As far as I understand, the value of |
From CMake Tools' perspective, we just tell cpptools what CMake told us. If a specific standard is requested, we send it, but otherwise we don't have to send it. cpptools owns the mappings, so we shouldn't do anything in |
I plan to switch to C++ 23 soon. Is this just an annoyance or a blocker? Does this fix it: |
I believe you will need 1.10.0 of cpptools (pre-release) which came out late last week. I think we already addressed the warnings in the CMake Tools pre-release (community contribution: #2476) but it requires the matching changes in cpptools. |
It looks like our bookkeeping didn't mark this issue as fixed yet. |
Brief Issue Summary
When compiling a CMake project with
CMAKE_CXX_STANDARD=23
I see[cpptools] Unknown C++ standard control flag: -std=c++23
in the CMake/Build output.CMake Tools Diagnostics
{
"os": "linux",
"vscodeVersion": "1.66.0",
"cmtVersion": "1.10.5",
"configurations": [
{
"folder": "/home/sweemer/QuantLib",
"cmakeVersion": "3.22.3",
"configured": true,
"generator": "Unix Makefiles",
"usesPresets": true,
"compilers": {
"CXX": "g++-11"
}
}
],
"cpptoolsIntegration": {
"isReady": true,
"hasCodeModel": true,
"activeBuildType": "Debug",
"buildTypesSeen": [
"Debug"
],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 51,
"executablesCount": 21,
"librariesCount": 2,
"targets": []
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": true
}
]
}
The text was updated successfully, but these errors were encountered: