Winewrapper fixes (#4501)

* Fix library fix regression from 38f6371de6
* Fix missing windows include directory
This commit is contained in:
Lukas W
2018-07-26 18:37:35 +02:00
parent 7ddca851d1
commit 515fefa6ce
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ FOREACH(FLAG ${WINEBUILD_FLAGS})
# Gentoo systems
STRING(REPLACE "/lib/wine-" "/lib32/wine-" FLAG "${FLAG}")
# WineHQ (/opt/wine-stable, /opt/wine-devel, /opt/wine-staging)
STRING(REPLACE "/lib64/wine/" "/lib/wine/" FLAG "${FLAG}")
STRING(REGEX REPLACE "/lib64$" "/lib" FLAG "${FLAG}")
SET(WINE_32_LIBRARY_DIR "${FLAG}/")
ENDIF()

View File

@@ -40,7 +40,7 @@ fi
# Some Wine distributions can't find their own headers. WINE_INCLUDE_DIR provided
# by FindWine.cmake
extra_args="-I@WINE_INCLUDE_DIR@"
extra_args="-I@WINE_INCLUDE_DIR@ -I@WINE_INCLUDE_DIR@/wine/windows"
# Apply -m32 library fix if necessary
if [ "$win32" = true ] && [ "$no_link" != true ]; then