Fail to configure if xgettext cannot be found.

Fixes issue #292
This commit is contained in:
John Maguire 2010-05-07 13:10:21 +00:00
parent b909f56dbb
commit b41716e520
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@ add_definitions(-DQXT_STATIC -DBUILD_QXT_GUI -DBUILD_QXT_CORE)
# Translations stuff
find_program(GETTEXT_XGETTEXT_EXECUTABLE xgettext)
if(NOT GETTEXT_XGETTEXT_EXECUTABLE)
message(FATAL_ERROR "Could not find xgettext executable")
endif(NOT GETTEXT_XGETTEXT_EXECUTABLE)
# Subdirectories
add_subdirectory(3rdparty/qtsingleapplication)