Skip to content

Commit

Permalink
[vcpkg baseline][cppcms] Fix issue with detecting Python 2. (microsof…
Browse files Browse the repository at this point in the history
…t#15473)

* [cppcms] Fix issue with detecting Python 2.

* Update ports/cppcms/portfile.cmake

Co-authored-by: Jack·Boos·Yu <[email protected]>
  • Loading branch information
Hoikas and JackBoosY authored Jan 7, 2021
1 parent 6b34646 commit 9ddc917
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ports/cppcms/CONTROL
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions ports/cppcms/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9ddc917

Please sign in to comment.