Skip to content

cmake: msvc: Don't force consumers to same c++ version#2488

Open
autoantwort wants to merge 1 commit into
facebook:mainfrom
autoantwort:fix/dont-force-cxx-version
Open

cmake: msvc: Don't force consumers to same c++ version#2488
autoantwort wants to merge 1 commit into
facebook:mainfrom
autoantwort:fix/dont-force-cxx-version

Conversation

@autoantwort

Copy link
Copy Markdown
Contributor

Fixes #2295.

The current code was introduced in b31800c, it is not obvious to my why. One could simply set CMAKE_CXX_STANDARD to the c++ version ones want. This also works for c++latest.

With target_compile_features every body uses at least c++20, one can use CMAKE_CXX_STANDARD to choose a different version and consumers also can choose the version they want.

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

1 participant