We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bba2808 commit 651d00aCopy full SHA for 651d00a
cmake/modules/CheckCompiler.cmake
@@ -162,7 +162,11 @@ endif()
162
# so we check the value of __cplusplus.
163
# This default value can be overridden by specifying one at the prompt.
164
if (MSVC)
165
- set(CXX_STANDARD_STRING "201703L")
+ if(MSVC_VERSION GREATER_EQUAL 1950)
166
+ set(CXX_STANDARD_STRING "202002L")
167
+ else()
168
+ set(CXX_STANDARD_STRING "201703L")
169
+ endif()
170
else()
171
execute_process(COMMAND echo __cplusplus
172
COMMAND ${CMAKE_CXX_COMPILER} -E -x c++ -
0 commit comments