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

Improve Visual Studio build check for newer versions #33

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

ximinez
Copy link
Contributor

@ximinez ximinez commented May 23, 2022

This is basically the same change that was included in XRPLF/rippled#4150

Building with the Visual Studio 19 or 22 cmake generators fails because "Win64" is not included in the name. That's because the naming convention was changed between 17 and 19 to not include the architecture, and the default was changed to 64-bit, so the check can be a lot looser.

@greg7mdp
Copy link

Is this file even used? When building the validator-keys-tool I had to update the one in .nih_c coming from the rippled download

@ximinez
Copy link
Contributor Author

ximinez commented May 23, 2022

It is. Make sure that the rippled download has version 1.9.1, which has this same fix. Basically, this condition gets checked twice - once by validator-keys-tool, once by rippled. If you try to build develop using one of the VS generators ("Visual Studio 16 2019" or "Visual Studio 17 2022"), it will fail.

@greg7mdp
Copy link

Thanks Ed. I had updated manually the KeySanity.cmake last week, but forgot all about it :-), so indeed the change is needed!

@intelliot
Copy link
Collaborator

@ximinez is this still worth including? Should I merge it?

@ximinez
Copy link
Contributor Author

ximinez commented Feb 23, 2023

is this still worth including? Should I merge it?

@intelliot I think it is, yes.

@intelliot intelliot merged commit c640d03 into ripple:master Feb 23, 2023
@ximinez ximinez deleted the vscmake branch July 7, 2023 22:21
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.

3 participants