Fix pkgconfig built by MSVC on Windows (#992)
Co-authored-by: jheaff1 <jheaff1@outlook.com>
This commit is contained in:
parent
228f9eb96a
commit
4d4a678974
|
@ -192,7 +192,10 @@ def increment_pkg_config_path(_source):
|
|||
local children=$($REAL_FIND "$1" -mindepth 1 -name '*.pc')
|
||||
# assume there is only one directory with pkg config
|
||||
for child in $children; do
|
||||
export PKG_CONFIG_PATH="$${PKG_CONFIG_PATH:-}$$:$(dirname $child)"
|
||||
LIB_DIR=$(dirname $child)
|
||||
# pkg-config requires unix paths, e.g of the form /c/Users/..., rather than C:/Users/...
|
||||
LIB_DIR=$(cygpath $${LIB_DIR//\\\\//}$$)
|
||||
export PKG_CONFIG_PATH="$${PKG_CONFIG_PATH:-}$$:$${LIB_DIR}$$"
|
||||
return
|
||||
done
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue