Skip to content

How to set v142 installed by VS2022 #38616

Answered by StarGate-One
QiuYilin asked this question in Q&A
Discussion options

You must be logged in to vote

Because the v142 toolset was selected then it was told to use version "14.39.33519" C/C++ version from the v142 toolset, which does not exist.
The first 3 numbers on the version are the toolset.
You just as easily could have just put in your triplet file set(VCPKG_PLATFORM_TOOLSET v142) in which vcpkg would use the latest v142 C/C++ version you have loaded, or set(VCPKG_PLATFORM_TOOLSET_VERSION "14.29.30133) and vcpkg would use that version if available otherwise it would error out.

Bottom line you do not need both as you can see a simple mistake can cause vcpkg erratic behavior.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@QiuYilin
Comment options

@StarGate-One
Comment options

Answer selected by QiuYilin
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