diff options
author | Aki <please@ignore.pl> | 2023-01-15 00:08:06 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-01-15 00:08:06 +0100 |
commit | 2426c840db274a8cb9652bc6ece2acfce19b1365 (patch) | |
tree | 692eb6f94f7b17a86042c2db50174b552e60bc34 | |
parent | 22974bb85df2028a7c56dd8ea7da406ab8bb4eee (diff) | |
download | mingw-w64-cmake-toolchains-master.zip mingw-w64-cmake-toolchains-master.tar.gz mingw-w64-cmake-toolchains-master.tar.bz2 |
This is not yet there as projects can't append anything to it just yet.
-rw-r--r-- | toolchain.cmake.in | 4 |
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() |