From 0adf4f2c2113cdfd05de2d028b413cb98912f5c1 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 17 Mar 2021 11:44:00 +1000 Subject: [PATCH] toolchain/mingw: prefer to use REQUIRED in `find_program` --- cmake/toolchain/mingw | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 ()