Skip to content

Commit

Permalink
Add include, inclib and lib path to env for windows only
Browse files Browse the repository at this point in the history
  • Loading branch information
nicogodet authored Oct 30, 2024
1 parent 3439c5d commit 68ea43d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ports/py-pillow/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ vcpkg_from_github(

set(ENV{PKG_CONFIG} "${CURRENT_HOST_INSTALLED_DIR}/tools/pkgconf/pkgconf")
set(ENV{PKG_CONFIG_PATH} "${CURRENT_INSTALLED_DIR}/lib/pkgconfig")
set(ENV{INCLUDE} "${CURRENT_INSTALLED_DIR}/include;$ENV{INCLUDE}")
set(ENV{INCLIB} "${CURRENT_INSTALLED_DIR}/lib;$ENV{INCLIB}")
set(ENV{LIB} "${CURRENT_INSTALLED_DIR}/lib;$ENV{LIB}")
if(VCPKG_TARGET_IS_WINDOWS)
set(ENV{INCLUDE} "${CURRENT_INSTALLED_DIR}/include;$ENV{INCLUDE}")
set(ENV{INCLIB} "${CURRENT_INSTALLED_DIR}/lib;$ENV{INCLIB}")
set(ENV{LIB} "${CURRENT_INSTALLED_DIR}/lib;$ENV{LIB}")
endif()

vcpkg_python_build_and_install_wheel(
SOURCE_PATH "${SOURCE_PATH}"
Expand Down

0 comments on commit 68ea43d

Please sign in to comment.