-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[vcpkg-tool-meson] Fix installation #35957
Conversation
COMMAND "${CMAKE_COMMAND}" | ||
"-DSOURCE_PATH=${SOURCE_PATH}" | ||
"-DCURRENT_PACKAGES_DIR=${CURRENT_PACKAGES_DIR}" | ||
-P "${CURRENT_PORT_DIR}/install.cmake" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use a install script here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allows to easily redirect the output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use COPY instead of INSTALL in the script then?
I dont think there is a reason to keep an install log here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish the original change would have received this attention.
) | ||
|
||
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-port-config.cmake" @ONLY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no reason to change this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no reason to use configure_file
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the PR updating meson will just change it back since meson will be moved back into DOWNLOADS an downloaded in the port config. As such this adds just another blame entry.
And since it is moved into downloads it will get directly extracted there.
I don't think there's value in creating a log for file copies like this, but I also don't really see harm either. I'm going to merge as is given that we have a clean build.
The problem this PR fixes is a problem created by not consuming meson from |
Thanks! |
[vcpkg-tool-meson] Fix installation (microsoft#35957)
Fixes #35795.
Fixes binary caching.