mirror of https://github.com/microsoft/vcpkg.git
[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:
parent
6b346462ba
commit
9ddc9173d7
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue