diff --git a/cmake/toolchain/mingw b/cmake/toolchain/mingw index 9adb979..22c94da 100644 --- a/cmake/toolchain/mingw +++ b/cmake/toolchain/mingw @@ -17,10 +17,7 @@ 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 () + find_program (WINE wine REQUIRED) set (CMAKE_CROSSCOMPILING_EMULATOR "${WINE}") endif ()