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

[mpg123] Triplet VCPKG_BUILD_TYPE release fix #9056

Closed
wants to merge 2 commits into from
Closed

[mpg123] Triplet VCPKG_BUILD_TYPE release fix #9056

wants to merge 2 commits into from

Conversation

heydojo
Copy link
Contributor

@heydojo heydojo commented Nov 20, 2019

Fix builds which do not require
debug files.

Attempting to build mpg123 with
VCPKG_BUILD_TYPE release set in
a triplet will fail. This patch
prevent builds from failing
under VCPKG_BUILD_TYPE release
build conditions.

Fix builds which do not require
debug files.

Attempting to build mpg123 with
VCPKG_BUILD_TYPE release set in
a triplet will fail. This patch
prevent builds from failing
under VCPKG_BUILD_TYPE release
build conditions.
@PhoebeHui PhoebeHui requested a review from JackBoosY November 21, 2019 08:14
@PhoebeHui
Copy link
Contributor

/azp run

@@ -48,36 +48,44 @@ if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_build_msbuild(
Copy link
Collaborator

Choose a reason for hiding this comment

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

If possible, I recommend trying to replace this with vcpkg_install_msbuild()[1].

[1] https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_install_msbuild.md

Copy link
Contributor Author

@heydojo heydojo Nov 23, 2019

Choose a reason for hiding this comment

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

Please feel free to act on your advice. I have no further interest in this port past just making it work and as such pushed this to just make it work under expected conditions. Previously, the port would fail. The upshot of this being that I just removed the requirement to use mp3 playback in the application I was building. Therefore no longer requiring the output of this port.

Thanks for the recommendation though and I'm sure that someone else is up to the challenge!

Edit: I will add that this port was patched at 56351a3 without following the guidance found at #6045.

Unfortunately, CMake's language doesn't
support conditionals nested inside
functions according to #9056 (comment)
This patch aims to resolve an attempt
to do so from the previous commit.
# Debug build
################
message(STATUS "Configuring ${TARGET_TRIPLET}-dbg")
vcpkg_execute_required_process(
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Proposed merge deleted and pull request closed.

Please update this port however you see fit. Or don't as the case may likely be.

@heydojo heydojo closed this Nov 28, 2019
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