[llvm] [docs][CMake] Add CMakePreset, improve VS documentation (PR #84760)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 12 05:46:20 PDT 2024
================
@@ -119,7 +120,55 @@ These instruction were tested with Visual Studio 2019 and Python 3.9.6:
Select the last link: ``Source code (zip)`` and unpack the downloaded file using
Windows Explorer built-in zip support or any other unzip tool.
-12. Finally, configure LLVM using CMake:
+12. Open the LLVM folder in Visual Studio or generate a solution via CMake.
+
+ At this point you can select if you want to use the
+ :ref:`native support for CMake<vs_native_cmake>` in Visual Studio or
+ :ref:`generate Visual Studio<gen_vs_cmake>` solution file from CMake.
+ Both integrations are supported in the LLVM project.
+
+.. _vs_native_cmake:
+
+Visual Studio native CMake support
+==================================
+
+Support for native CMake integration was added in Visual Studio 2019, but it has
+been made more robust in 2022. If you are using Visual Studio before 2022, it's
+recommended to generate a Visual Studio solution from CMake instead of using the
+native CMake integration.
+
+If you want to generate a Visual Studio Solution for older versions of Visual
----------------
jh7370 wrote:
Are "older versions" here meant to mean VS2017 and older? If so, I thought VS2019 was the oldest supported currently? If it instead means VS2019, I think there's a bit of redundancy between this and the previous paragraph.
https://github.com/llvm/llvm-project/pull/84760
More information about the llvm-commits
mailing list