Skip to content

Commit 97fcdee

Browse files
Simplify CMake generation step for Windows and refer to CMake docs (#1449)
1 parent 0154a82 commit 97fcdee

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

docs/build.adoc

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -182,33 +182,14 @@ Please make sure, when running any sample, that you either:
182182
* Run Command Prompt or Visual Studio as administrator
183183
____
184184

185-
`Step 1.` The following command will generate the VS project
186-
187-
----
188-
cmake -G "Visual Studio 15 2017 Win64" -S . -Bbuild/windows
189-
----
190-
191-
(Prior to CMake v3.13)
192-
193-
----
194-
cmake -G "Visual Studio 15 2017 Win64" . -Bbuild/windows
195-
----
196-
197-
(New in CMake v3.14.
198-
Visual Studio 2019 must be installed)
199-
200-
----
201-
cmake -G "Visual Studio 16 2019" -A x64 -S . -Bbuild/windows
202-
----
203-
204-
(New in CMake v3.21.
205-
Visual Studio 2022 must be installed)
185+
`Step 1.` Generate the VS solution from the root of the repository
206186

187+
(For other VS versions please refer to https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html#id15[CMake Generators])
207188
----
208189
cmake -G "Visual Studio 17 2022" -A x64 -S . -Bbuild/windows
209190
----
210191

211-
Open the *vulkan_samples.sln* VS project inside build/windows and build with Ctrl-Shift-B. To run Vulkan Samples, use Visual Studio's Debug Properties selection and set the Debugging Command Arguments to --help. Click the "Local Windows Debugger" button and you should see the help output in the terminal. For convenience, the default setting is to run the hello_triangle sample; just edit that to your desired sample to run.
192+
Open the *vulkan_samples.sln* or *vulkan_samples.slnx* VS solution inside *build/windows* and build with Ctrl-Shift-B. To run Vulkan Samples, use Visual Studio's Debug Properties selection and set the Debugging Command Arguments to --help. Click the "Local Windows Debugger" button and you should see the help output in the terminal. For convenience, the default setting is to run the hello_triangle sample; just edit that to your desired sample to run.
212193

213194
Alternatively, for command line builds use the steps below:
214195

0 commit comments

Comments
 (0)