Skip to content

Commit 540c25a

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 540c25a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakePresets.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
"generator": "NMake Makefiles",
1313
"hidden": false,
1414
"binaryDir": "${sourceDir}/build/${presetName}",
15+
"environment": {
16+
"VS6_DIR": "$env{ProgramFiles(x86)}\\Microsoft Visual Studio",
17+
"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}",
18+
"INCLUDE": "$env{VS6_DIR}\\VC98\\INCLUDE;$env{VS6_DIR}\\VC98\\MFC\\INCLUDE;$env{VS6_DIR}\\VC98\\ATL\\INCLUDE;penv{INCLUDE}",
19+
"LIB": "$env{VS6_DIR}\\VC98\\LIB;$env{VS6_DIR}\\VC98\\MFC\\LIB;$penv{LIB}"
20+
},
1521
"cacheVariables": {
1622
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
1723
"CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL",

0 commit comments

Comments
 (0)