diff --git a/ports/py-pillow/portfile.cmake b/ports/py-pillow/portfile.cmake index 0d63365..a83bef1 100755 --- a/ports/py-pillow/portfile.cmake +++ b/ports/py-pillow/portfile.cmake @@ -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}"