MSVC_IDE

From Get docs
Cmake/docs/3.21/variable/msvc ide


MSVC_IDE

True when using the Microsoft Visual C++ 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 project() or enable_language() call which uses an MSVC-like compiler.


© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/MSVC_IDE.html