blob: 47c61219ec50de76ea843fd1ee5e7d7bd47dca9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# - Try to find msgfmt
# Once done this will define
#
# MSGFMT_FOUND - system has msgfmt
# Copyright (c) 2007, Montel Laurent <montel@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
### TODO: KDE4 needs msgfmt of version 0.15 or greater (cf. msgfmt --version )
if(MSGFMT_EXECUTABLE)
set(MSGFMT_FOUND TRUE)
else(MSGFMT_EXECUTABLE)
FIND_PROGRAM(MSGFMT_EXECUTABLE NAMES msgfmt)
if (MSGFMT_EXECUTABLE)
set(MSGFMT_FOUND TRUE)
else (MSGFMT_EXECUTABLE)
if (Msgfmt_FIND_REQUIRED)
message(SEND_ERROR "Could NOT find msgfmt program")
endif (Msgfmt_FIND_REQUIRED)
endif (MSGFMT_EXECUTABLE)
MARK_AS_ADVANCED(MSGFMT_EXECUTABLE)
endif (MSGFMT_EXECUTABLE)
|