Skip to content

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

Merged
vicroms merged 2 commits intomicrosoft:masterfrom
Hoikas:cppcms-py2
Jan 7, 2021
Merged

[vcpkg baseline][cppcms] Fix issue with detecting Python 2.#15473
vicroms merged 2 commits intomicrosoft:masterfrom
Hoikas:cppcms-py2

Conversation

@Hoikas
Copy link
Copy Markdown
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
Copy Markdown
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
@JackBoosY
Copy link
Copy Markdown
Contributor

Tiny and effective, thanks!

@JackBoosY JackBoosY added the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Jan 6, 2021
@JackBoosY
Copy link
Copy Markdown
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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants