CMake: Require gettext for translations on macOS

MacOS uses modified po files, which means it can't use the precompiled mos
This commit is contained in:
TellowKrinkle 2021-12-12 16:57:15 -06:00 committed by tellowkrinkle
parent e2e8fdafb1
commit 176917caf4
1 changed files with 4 additions and 0 deletions

View File

@ -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/)