diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-06-04 15:47:04 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-06-04 21:17:28 +0200 |
| commit | 1ddf80fe9336dc3b47e4455ae6118c3cf6fab002 (patch) | |
| tree | 44f95686977c73a32620ba605a79a2538e996e6e /examples/widgetbinding | |
| parent | 11afd18d34c17a345315d226b6124dc1fd31d12c (diff) | |
Examples: Update CMake instructions
Remove -S and use -DCMAKE_C_COMPILER=cl.exe consistently.
Pick-to: 6.7
Change-Id: I73a4e9aaf37bb082d8a4398113c8752caebf9358
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'examples/widgetbinding')
| -rw-r--r-- | examples/widgetbinding/doc/widgetbinding.md | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/examples/widgetbinding/doc/widgetbinding.md b/examples/widgetbinding/doc/widgetbinding.md index 6355ea311..910961b1e 100644 --- a/examples/widgetbinding/doc/widgetbinding.md +++ b/examples/widgetbinding/doc/widgetbinding.md @@ -40,20 +40,24 @@ The most important files are: Now create a `build/` directory, and from inside run `cmake` to use the provided `CMakeLists.txt`: -macOS/Linux: +Run CMake on macOS/Linux: ```bash cd ~/pyside-setup/examples/widgetbinding +cd build +cmake .. -B. -G Ninja -DCMAKE_BUILD_TYPE=Release ``` -On Windows: +Run CMake on Windows: ```bash cd C:\pyside-setup\examples\widgetbinding +mkdir build +cd build +cmake .. -B. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=cl.exe ``` +To build: ```bash -mkdir build -cd build -cmake -S.. -B. -G Ninja -DCMAKE_BUILD_TYPE=Release + ninja ninja install cd .. |
