diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-05-06 12:28:40 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-05-08 16:34:32 +0000 |
commit | 7a15789321c735e6c2c03d95345724b780625d08 (patch) | |
tree | 7d06d0a27b35c558ee082e3ab69b1f14a5492b7d | |
parent | a279f8a342fbca6930be7b31f4e2297e2a430f14 (diff) |
sample binding: Document how to force MSVC in case CMake detects clang
Task-number: PYSIDE-1112
Change-Id: I9eefeb12c1609ee0fda4fd0ab160b25f82813f6a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit be71b8875cd48727844256709082ada04ed74410)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | examples/samplebinding/README.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/samplebinding/README.md b/examples/samplebinding/README.md index d12d2b774..26ff2b383 100644 --- a/examples/samplebinding/README.md +++ b/examples/samplebinding/README.md @@ -177,7 +177,13 @@ python main.py It is possible that **CMake** can pick up the wrong compiler for a different architecture, but it can be addressed explicitly -using the -G option: +by setting the **CC** environment variable: + +```bash +set CC=cl +``` + +or by using the -G option: ```bash cmake -H.. -B. -G "Visual Studio 14 Win64" |