Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for VS 2017 #307

Merged
merged 1 commit into from
Nov 21, 2016
Merged

Conversation

barcharcraz
Copy link
Member

the version of cmake shipped with VS2017 has a new generator for vs2017, this will probably be the final name as well.

to use this in VS2017 simply add -DCMAKE_TOOLCHAIN_FILE=c:\... to the cmakeCommandArgs option in the json settings file. If it's the first option you MUST add a leading space to the JSON string.

@msftclas
Copy link

Hi @barcharcraz, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

@ras0219-msft ras0219-msft merged commit b68f330 into microsoft:master Nov 21, 2016
@ras0219-msft
Copy link
Contributor

Looks great, thanks!

@@ -12,6 +12,12 @@ if(NOT VCPKG_TOOLCHAIN)
set(_VCPKG_TARGET_TRIPLET_ARCH arm)
elseif(CMAKE_GENERATOR MATCHES "^Visual Studio 14 2015$")
set(_VCPKG_TARGET_TRIPLET_ARCH x86)
elseif(CMAKE_GENERATOR MATCHES "^Visual Studio 15 2017 Win64$")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The official CMake 3.7 release doesn't include the " 2017" as part of the generator name. This should also probably be merged with the case above, making the final regex for the Win64 case:
^Visual Studio 1(4 2015|5( 2017)?) Win64$

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is true, I'll add it as a totally separate line in a new PR.

ras0219-msft pushed a commit that referenced this pull request Feb 21, 2021
* Issue #307

* Update baseline
@barcharcraz barcharcraz deleted the vs2017fix branch June 14, 2021 00:03
dempo93 pushed a commit to dempo93/vcpkg that referenced this pull request Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants