mingw: set CROSSCOMPILING_EMULATOR to wine if we're not under Windows
This commit is contained in:
parent
63e8d4ebb7
commit
122902736c
@ -14,3 +14,15 @@ set(CMAKE_FIND_ROOT_PATH "/usr/${TOOLCHAIN_PREFIX};/usr/lib/gcc/${TOOLCHAIN_PREF
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
|
||||
# Set Wine as the emulator if we're not running under Windows
|
||||
if (NOT "${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows")
|
||||
find_program(WINE wine)
|
||||
if (NOT WINE)
|
||||
error (FATAL_ERROR "Unable to find 'wine' for 'emulation'")
|
||||
endif ()
|
||||
|
||||
set (CMAKE_CROSSCOMPILING_EMULATOR "${WINE}")
|
||||
endif ()
|
||||
|
||||
set (CMAKE_CROSSCOMPILING_EMULATOR "${WINE}")
|
||||
|
Loading…
Reference in New Issue
Block a user