VS lower than 9 can only use NMake generator on CMake

feature/quick-start-py
kaetemi 3 years ago
parent f57a5260bb
commit a1285106b3
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -23,7 +23,12 @@ for ts in SortedToolsets:
for platform in VSPlatforms:
toolchain = {}
toolchain["Compiler"] = "MSVC"
toolchain["Generator"] = vs["Name"]
if vs["Version"] >= 9:
toolchain["Generator"] = vs["Name"]
else:
# https://cmake.org/cmake/help/latest/generator/Visual%20Studio%208%202005.html
# Must set VCVars ahead of compiling!
toolchain["Generator"] = "NMake Makefiles"
toolchain["Platform"] = platform
toolchain["Toolset"] = ts
toolchain["Prefix"] = FindVSPrefixPaths(ts, platform)

Loading…
Cancel
Save