While using CMake based projects in Visual Studio, if you set the CXX_STANDARD version to 23 to get the latest preview features, it causes every .cpp file to be rebuilt whenever you click the standard run button in the IDE. Essentially behaving as if I cleaned my project befo...
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", "...
set(CMAKE_CXX_EXTENSIONS OFF) endmacro() # Set the compiler standard to C++23 macro(cxx_23) set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) endmacro() 0 comments on commit 30abd2e Please sign in to comment. Footer...
# Current cmake (3.21.0) do not support cxx23 for AppleClang now set_compiler_option_max_cxx_standard(23) set_compiler_option_max_c_standard(23) elseif(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "12.0") # Current cmake (3.21.0) do not support cxx23 for AppleClang now set_comp...