-
Notifications
You must be signed in to change notification settings - Fork 37
/
vs_cmake.vbs
34 lines (34 loc) · 882 Bytes
/
vs_cmake.vbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Class VSCMakePlatform
Public Function GetPlatform(vsver,isamd64)
dim retstr
if vsver = "16.0" Then
retstr = "-G " & chr(34) & "Visual Studio 16 2019" & chr(34) & " "
if isamd64 Then
retstr = retstr & "-A x64"
Else
retstr = retstr & "-A Win32"
End If
elseif vsver = "15.0" Then
retstr="-G " & chr(34) & "Visual Studio 15 2017"
if isamd64 Then
retstr = retstr & " Win64"
End If
retstr = retstr & chr(34)
elseif vsver = "14.0" Then
retstr= "-G " & chr(34) & "Visual Studio 14 2015"
if isamd64 Then
retstr= retstr & " Win64"
End If
retstr = retstr & chr(34)
elseif vsver = "12.0" Then
retstr="-G " & chr(34) & "Visual Studio 12 2013"
if isamd64 Then
retstr= retstr & " Win64"
End If
retstr = retstr & chr(34)
else
retstr=Empty
End If
GetPlatform=retstr
End Function
End Class