Skip to content

Commit 7379a5b

Browse files
committed
doc: Recommend clang-cl when building on Windows
1 parent 201b2b8 commit 7379a5b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,11 @@ To cross compile for Android with [NDK](https://developer.android.com/ndk/guides
135135
136136
### Building on Windows
137137
138-
To build on Windows with Visual Studio, a proper [generator](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html#visual-studio-generators) must be specified for a new build tree.
139-
140-
The following example assumes using of Visual Studio 2022 and CMake v3.21+.
138+
The following example assumes Visual Studio 2022. Using clang-cl is recommended.
141139
142140
In "Developer Command Prompt for VS 2022":
143141
144-
>cmake -G "Visual Studio 17 2022" -A x64 -B build
142+
>cmake -B build -T ClangCL
145143
>cmake --build build --config RelWithDebInfo
146144
147145
Usage examples

0 commit comments

Comments
 (0)