From 2426c840db274a8cb9652bc6ece2acfce19b1365 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 15 Jan 2023 00:08:06 +0100 Subject: Fixed wine invocation to setup WINEPATH This is not yet there as projects can't append anything to it just yet. --- toolchain.cmake.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- cgit v1.1