#if _MSC_VER >= 1910 && _MSC_VER < 1920 // Using v141 toolset #endif
1. Overview v141 is the version identifier for the Microsoft C++ compiler (MSVC) toolchain that shipped with Visual Studio 2017 (Version 15.0). It is the successor to the v140 toolset (Visual Studio 2015) and the predecessor to v142 (Visual Studio 2019). visual studio v141
if(MSVC_TOOLSET_VERSION EQUAL 141) message("v141 toolset detected") endif() #if _MSC_VER >= 1910 && _MSC_VER < 1920