MUtilities development repository
Revision | b3a4c34e1f412a96b8cefb2f42414d4243d697d6 (tree) |
---|---|
Zeit | 2020-03-30 04:38:42 |
Autor | ![]() |
Commiter | LoRd_MuldeR |
Added support for Visual Studio 2019.5 (v16.5) + simplified detection for newer versions of Visual Studio.
@@ -67,80 +67,32 @@ namespace MUtils | ||
67 | 67 | #error Compiler is not supported! |
68 | 68 | #endif |
69 | 69 | #elif defined(_MSC_VER) |
70 | - #if (_MSC_VER == 1924) | |
71 | - #if((_MSC_FULL_VER >= 192428314) && (_MSC_FULL_VER <= 192428314)) | |
72 | - "MSVC 2019.4"; | |
73 | - #else | |
74 | - #error Compiler version is not supported yet! | |
75 | - #endif | |
70 | + #if (_MSC_VER == 1925) | |
71 | + "MSVC 2019.5"; | |
72 | + #elif (_MSC_VER == 1924) | |
73 | + "MSVC 2019.4"; | |
76 | 74 | #elif (_MSC_VER == 1923) |
77 | - #if((_MSC_FULL_VER >= 192328105) && (_MSC_FULL_VER <= 192328105)) | |
78 | - "MSVC 2019.3"; | |
79 | - #else | |
80 | - #error Compiler version is not supported yet! | |
81 | - #endif | |
75 | + "MSVC 2019.3"; | |
82 | 76 | #elif (_MSC_VER == 1922) |
83 | - #if((_MSC_FULL_VER >= 192227905) && (_MSC_FULL_VER <= 192227905)) | |
84 | - "MSVC 2019.2"; | |
85 | - #else | |
86 | - #error Compiler version is not supported yet! | |
87 | - #endif | |
77 | + "MSVC 2019.2"; | |
88 | 78 | #elif (_MSC_VER == 1921) |
89 | - #if((_MSC_FULL_VER >= 192127702) && (_MSC_FULL_VER <= 192127702)) | |
90 | - "MSVC 2019.1"; | |
91 | - #else | |
92 | - #error Compiler version is not supported yet! | |
93 | - #endif | |
79 | + "MSVC 2019.1"; | |
94 | 80 | #elif (_MSC_VER == 1920) |
95 | - #if((_MSC_FULL_VER >= 192027508) && (_MSC_FULL_VER <= 192027508)) | |
96 | - "MSVC 2019.0"; | |
97 | - #else | |
98 | - #error Compiler version is not supported yet! | |
99 | - #endif | |
81 | + "MSVC 2019.0"; | |
100 | 82 | #elif (_MSC_VER == 1916) |
101 | - #if((_MSC_FULL_VER >= 191627024) && (_MSC_FULL_VER <= 191627038)) | |
102 | - "MSVC 2017.9"; | |
103 | - #else | |
104 | - #error Compiler version is not supported yet! | |
105 | - #endif | |
83 | + "MSVC 2017.9"; | |
106 | 84 | #elif (_MSC_VER == 1915) |
107 | - #if((_MSC_FULL_VER >= 191526726) && (_MSC_FULL_VER <= 191526732)) | |
108 | - "MSVC 2017.8"; | |
109 | - #else | |
110 | - #error Compiler version is not supported yet! | |
111 | - #endif | |
85 | + "MSVC 2017.8"; | |
112 | 86 | #elif (_MSC_VER == 1914) |
113 | - #if((_MSC_FULL_VER >= 191426430) && (_MSC_FULL_VER <= 191426433)) | |
114 | - "MSVC 2017.7"; | |
115 | - #else | |
116 | - #error Compiler version is not supported yet! | |
117 | - #endif | |
87 | + "MSVC 2017.7"; | |
118 | 88 | #elif (_MSC_VER == 1913) |
119 | - #if((_MSC_FULL_VER >= 191326128) && (_MSC_FULL_VER <= 191326132)) | |
120 | - "MSVC 2017.6"; | |
121 | - #else | |
122 | - #error Compiler version is not supported yet! | |
123 | - #endif | |
89 | + "MSVC 2017.6"; | |
124 | 90 | #elif (_MSC_VER == 1912) |
125 | - #if((_MSC_FULL_VER >= 191225830) && (_MSC_FULL_VER <= 191225835)) | |
126 | - "MSVC 2017.5"; | |
127 | - #else | |
128 | - #error Compiler version is not supported yet! | |
129 | - #endif | |
91 | + "MSVC 2017.5"; | |
130 | 92 | #elif (_MSC_VER == 1911) |
131 | - #if((_MSC_FULL_VER >= 191125542) && (_MSC_FULL_VER <= 191125547)) | |
132 | - "MSVC 2017.4"; | |
133 | - #elif((_MSC_FULL_VER >= 191125506) && (_MSC_FULL_VER <= 191125508)) | |
134 | - "MSVC 2017.3"; | |
135 | - #else | |
136 | - #error Compiler version is not supported yet! | |
137 | - #endif | |
93 | + "MSVC 2017.4"; | |
138 | 94 | #elif (_MSC_VER == 1910) |
139 | - #if ((_MSC_FULL_VER >= 191025017) && (_MSC_FULL_VER <= 191025019)) | |
140 | - "MSVC 2017.2"; | |
141 | - #else | |
142 | - #error Compiler version is not supported yet! | |
143 | - #endif | |
95 | + "MSVC 2017.2"; | |
144 | 96 | #elif (_MSC_VER == 1900) |
145 | 97 | #if (_MSC_FULL_VER == 190023026) |
146 | 98 | "MSVC 2015"; |