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

[vcpkg baseline][cppcms] Fix issue with detecting Python 2. #15473

Merged
merged 2 commits into from
Jan 7, 2021

Conversation

Hoikas
Copy link
Contributor

@Hoikas Hoikas commented Jan 6, 2021

This fixes an issue with detection of Python 2 in the cppcms port. Ping @JackBoosY

  • What does your PR fix?
    The upstream CMakeLists were using find_program() to find the Python executable instead of find_package(). This can result in the Python 3 interpreter built by the python3 port to be selected in some situations. We fix this by passing the path to Python directly to the CMake cache.

  • Which triplets are supported/not supported? Have you updated the CI baseline?
    No change.

  • Does your PR follow the maintainer guide?
    Yes

@JackBoosY
Copy link
Contributor

Thanks for this PR! I will test it manually later.

@JackBoosY JackBoosY self-assigned this Jan 6, 2021
@JackBoosY JackBoosY added the category:port-bug The issue is with a library, which is something the port should already support label Jan 6, 2021
@JackBoosY JackBoosY changed the title [cppcms] Fix issue with detecting Python 2. [vcpkg baseline][cppcms] Fix issue with detecting Python 2. Jan 6, 2021
ports/cppcms/portfile.cmake Outdated Show resolved Hide resolved
@JackBoosY
Copy link
Contributor

Tiny and effective, thanks!

@JackBoosY JackBoosY added the info:reviewed Pull Request changes follow basic guidelines label Jan 6, 2021
@JackBoosY
Copy link
Contributor

Ping @vicroms for merge this PR quickly.

@vicroms vicroms merged commit 9ddc917 into microsoft:master Jan 7, 2021
@Hoikas Hoikas deleted the cppcms-py2 branch January 7, 2021 05:13
Jimmy-Hu added a commit to Jimmy-Hu/vcpkg that referenced this pull request Jan 7, 2021
[vcpkg baseline][cppcms] Fix issue with detecting Python 2. (microsoft#15473)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants