Skip to content

Commit 3af1933

Browse files
committed
[CMAKE] Make vc6 build process easier
Added environment variable initialization to CMakePresets for vc6 It will no longer be necessary to setup a separate CMD session with vsvars32.bat just for VC6 builds. Switching to and from a vc6 build should now just be a matter of switching presets
1 parent 7e18d29 commit 3af1933

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

CMakePresets.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@
2525
}
2626
}
2727
},
28+
{
29+
"name": "vc6-vars",
30+
"hidden": true,
31+
"environment": {
32+
"VS6_DIR": "$env{ProgramFiles(x86)}\\Microsoft Visual Studio",
33+
"PATH": "$env{VS6_DIR}\\VC98\\BIN;$env{VS6_DIR}\\Common\\Tools;$env{VS6_DIR}\\Common\\Tools\\WinNT;$env{VS6_DIR}\\Common\\MSDev98\\Bin;penv{PATH}",
34+
"INCLUDE": "$env{VS6_DIR}\\VC98\\INCLUDE;$env{VS6_DIR}\\VC98\\MFC\\INCLUDE;$env{VS6_DIR}\\VC98\\ATL\\INCLUDE;penv{INCLUDE}",
35+
"LIB": "$env{VS6_DIR}\\VC98\\LIB;$env{VS6_DIR}\\VC98\\MFC\\LIB;$penv{LIB}"
36+
}
37+
},
2838
{
2939
"name": "vc6-profile",
3040
"displayName": "Windows 32bit VC6 Profile",
@@ -52,6 +62,14 @@
5262
"RTS_BUILD_OPTION_DEBUG": "ON"
5363
}
5464
},
65+
{
66+
"name": "vc6-easy",
67+
"inherits": ["vc6","vc6-vars"]
68+
},
69+
{
70+
"name": "vc6-debug-easy",
71+
"inherits": ["vc6-debug","vc6-vars"]
72+
},
5573
{
5674
"name": "default",
5775
"displayName": "Default Config (don't use directly!)",
@@ -168,7 +186,7 @@
168186
"displayName": "Unix 32bit VCPKG Release"
169187
}
170188
],
171-
"buildPresets": [
189+
"buildPresets": [
172190
{
173191
"name": "vc6",
174192
"configurePreset": "vc6",

0 commit comments

Comments
 (0)