summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-15 00:08:06 +0100
committerAki <please@ignore.pl>2023-01-15 00:08:06 +0100
commit2426c840db274a8cb9652bc6ece2acfce19b1365 (patch)
tree692eb6f94f7b17a86042c2db50174b552e60bc34
parent22974bb85df2028a7c56dd8ea7da406ab8bb4eee (diff)
downloadmingw-w64-cmake-toolchains-master.zip
mingw-w64-cmake-toolchains-master.tar.gz
mingw-w64-cmake-toolchains-master.tar.bz2
Fixed wine invocation to setup WINEPATHHEADmaster
This is not yet there as projects can't append anything to it just yet.
-rw-r--r--toolchain.cmake.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolchain.cmake.in b/toolchain.cmake.in
index 00f58f1..5dd4cfb 100644
--- a/toolchain.cmake.in
+++ b/toolchain.cmake.in
@@ -25,5 +25,7 @@ set(CMAKE_INSTALL_PREFIX "${MINGW_ROOT}" CACHE PATH "Installation prefix")
find_program(MINGW_WINE wine)
if(MINGW_WINE)
- set(CMAKE_CROSSCOMPILING_EMULATOR ${MINGW_WINE})
+ set(MINGW_WINEPATH $ENV{WINEPATH})
+ list(PREPEND MINGW_WINEPATH "${MINGW_ROOT}/bin")
+ set(CMAKE_CROSSCOMPILING_EMULATOR ${CMAKE_COMMAND} -E env "WINEPATH='${MINGW_WINEPATH}'" ${MINGW_WINE})
endif()