When building on Windows, which command-line interpreter should I use? #332
-
I’m working on a PR, and I want to test it out on Windows. The instructions for compiling Descent 3 on Windows say:
Now that I’ve installed Visual Studio Build Tools 2022 with the “Desktop development with C++” workload, there are several new entries in my Start menu:
In order to run the commands in the README, I need choose one of those command-line interpreters. Which one should I choose? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I would probably use the first one (Developer Command Prompt). Technically you don't have to use any of them - you could just use cmd.exe - but there is some path configuration required for CMake, which it looks like VS already does for you in that environment. |
Beta Was this translation helpful? Give feedback.
OK. I tried using the Developer Command Prompt for VS 2022, but I ran into several issues. When I tried to run the first
setx
command, this happened:According to
SETX /?
you’re supposed to doSETX <name> <value>
, notSETX <name>=<value>
. Once I figured that problem out, I ran into a different problem with the secondsetx
command: