Skip to content

When building on Windows, which command-line interpreter should I use? #332

Closed Answered by Jayman2000
Jayman2000 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

D:\VC\Not mine\vcpkg>setx VCPKG_ROOT="D:\VC\Not mine\vcpkg"
ERROR: Invalid syntax.
Type "SETX /?" for usage.

D:\VC\Not mine\vcpkg>

According to SETX /? you’re supposed to do SETX <name> <value>, not SETX <name>=<value>. Once I figured that problem out, I ran into a different problem with the second setx command:

D:\VC\Not mine\vcpkg>setx VCPKG_ROOT "D:\VC\Not mine\vcpkg"

SUCCESS: Specified value was saved.

D:\VC\Not mine\vcpkg>setx PATH %VCPKG_ROOT%;%PATH%
ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).
Type "…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jayman2000
Comment options

Answer selected by Jayman2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants