Skip to content
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

Support set_languages("cxx20") for intellisense #1157

Closed
maximegmd opened this issue Dec 23, 2020 · 1 comment
Closed

Support set_languages("cxx20") for intellisense #1157

maximegmd opened this issue Dec 23, 2020 · 1 comment

Comments

@maximegmd
Copy link

Is your feature request related to a problem? Please describe.

Currently I can only use set_languages("cxx17") but I need c++latest in visual studio.
Using

set_languages("cxx17")
add_cxflags("/std:c++latest")

Builds but generates the warning:

2>cl : Command line warning D9025: overriding '/std:c++17' with '/std:c++latest'

Using only add_cxflags builds but Intellisense then assumes C++14 failing to parse files correctly.

Using

set_languages("cxx20")

Builds but breaks intellisense.

Describe the solution you'd like

set_languages("cxxlatest")

@waruqi
Copy link
Member

waruqi commented Dec 23, 2020

you need only set to cxx20, it will be mapped to c++latest or c++20

, cxx20 = {"-std:c++20", "-std:c++latest"}

Builds but breaks intellisense

vsxmake? see #1105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants