From 176917caf451f8f528ea3ae990075806a01737e7 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sun, 12 Dec 2021 16:57:15 -0600 Subject: [PATCH] CMake: Require gettext for translations on macOS MacOS uses modified po files, which means it can't use the precompiled mos --- pcsx2/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcsx2/CMakeLists.txt b/pcsx2/CMakeLists.txt index 19f079afd6..f7aed8df70 100644 --- a/pcsx2/CMakeLists.txt +++ b/pcsx2/CMakeLists.txt @@ -1658,6 +1658,10 @@ if (NOT APPLE) ) endif() +if(APPLE AND NOT GETTEXT_FOUND AND NOT NO_TRANSLATION AND NOT PCSX2_CORE) + message(FATAL_ERROR "MacOS cannot use the precompiled translation files. Please install gettext or disable translations with NO_TRANSLATION") +endif() + # Translation files # CMake is dumb and can't properly associate custom command outputs with targets if they're made in different directories # So this has to be here (and not in a CMakeLists.txt file in locales/)