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

* [cppcms] Fix issue with detecting Python 2.

* Update ports/cppcms/portfile.cmake

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
This commit is contained in:
Adam Johnson 2021-01-06 23:30:36 -05:00 committed by GitHub
parent 6b346462ba
commit 9ddc9173d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Source: cppcms
Version: 1.2.1-1
Version: 1.2.1
Port-Version: 2
Homepage: https://github.com/artyom-beilis/cppcms
Description: CppCMS is a Free High Performance Web Development Framework (not a CMS) aimed at Rapid Web Application Development
Build-Depends: icu, pcre, openssl, zlib

View File

@ -10,12 +10,13 @@ vcpkg_from_github(
)
vcpkg_find_acquire_program(PYTHON2)
get_filename_component(PYTHON2_DIR ${PYTHON2} DIRECTORY)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DCMAKE_PROGRAM_PATH=${PYTHON2_DIR} -DUSE_WINDOWS6_API=ON
OPTIONS
-DPYTHON=${PYTHON2} # Switch to python3 on the next update
-DUSE_WINDOWS6_API=ON
)
vcpkg_install_cmake()