Browse Source

Merge topic 'Help-MSVC_IDE-avail-notice' into release-3.20

cf22237c69 Help: clarify availability of the MSVC_IDE variable

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5800
Brad King 4 years ago
parent
commit
36b0cc7958
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Help/variable/MSVC_IDE.rst

+ 7 - 0
Help/variable/MSVC_IDE.rst

@@ -5,3 +5,10 @@ MSVC_IDE
 
 Set to ``true`` when the target platform is the Microsoft Visual C++ IDE, as
 opposed to the command line compiler.
+
+.. note::
+
+  This variable is only available after compiler detection has been performed,
+  so it is not available to toolchain files or before the first
+  :command:`project` or :command:`enable_language` call which uses an
+  MSVC-like compiler.