MSVC_IDE description wrong?
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.
BTW: Target platform has different meaning in CMake doc and above doc should use different term.
This variable is not set true even if using from IDE - latest VS2017 uses CMake with Ninja generator and sets this variable to false.
Builds run from command line compiler have set this variable to true even if IDE is not used at all.
This variable is set to true when using Visual Studio generator IMHO and has nothing to using or not VS IDE. Documentation should be fixed.
Question: is there any way to detect if project is configured or build from VS IDE environment as opposed to run from CLI outside IDE?