From 0dd53f4284145542c06aec0e4a2ff2b7b45c17b7 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Sat, 17 Mar 2007 21:54:24 +0000 Subject: Add a cmake macro to search msgfmt program (need to generate po file) svn path=/trunk/KDE/kdelibs/; revision=643591 --- modules/FindMsgfmt.cmake | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/FindMsgfmt.cmake (limited to 'modules/FindMsgfmt.cmake') diff --git a/modules/FindMsgfmt.cmake b/modules/FindMsgfmt.cmake new file mode 100644 index 00000000..309b8b92 --- /dev/null +++ b/modules/FindMsgfmt.cmake @@ -0,0 +1,26 @@ +# - Try to find msgfmt +# Once done this will define +# +# MSGFMT_FOUND - system has msgfmt +# +# Copyright (c) 2007, Montel Laurent +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +if(MSGFMT_EXECUTABLE) + set(MSGFMT_FOUND TRUE) +else(MSGFMT_EXECUTABLE) + + FIND_PROGRAM(MSGFMT_EXECUTABLE NAMES msgfmt PATHS /usr/local/bin ) + 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) + -- cgit v1.2.1 From 96653b6229f2f5b7bc8f572c4dfa61792275f396 Mon Sep 17 00:00:00 2001 From: Nicolas Goutte Date: Sat, 28 Apr 2007 18:13:01 +0000 Subject: SVN_SILENT: add a TODO comment that msgfmt should be of version >= 0.15 (currently either 0.15, 0.15.1, 0.16 or 0.16.1) (Older version do not know about the context keyword msgctxt.) svn path=/trunk/KDE/kdelibs/; revision=658881 --- modules/FindMsgfmt.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/FindMsgfmt.cmake') diff --git a/modules/FindMsgfmt.cmake b/modules/FindMsgfmt.cmake index 309b8b92..cc9912ea 100644 --- a/modules/FindMsgfmt.cmake +++ b/modules/FindMsgfmt.cmake @@ -8,6 +8,8 @@ # 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) -- cgit v1.2.1 From f078487d1b9e273d2b2af81cbaba6f1b6f65f92e Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Tue, 7 Aug 2007 02:11:45 +0000 Subject: -use PATH_SUFFIXES in FindGLIB2.cmake to make the command even shorter -remove unecessary search path for msgfmt Alex svn path=/trunk/KDE/kdelibs/; revision=697172 --- modules/FindMsgfmt.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/FindMsgfmt.cmake') diff --git a/modules/FindMsgfmt.cmake b/modules/FindMsgfmt.cmake index cc9912ea..f578b3a2 100644 --- a/modules/FindMsgfmt.cmake +++ b/modules/FindMsgfmt.cmake @@ -14,7 +14,7 @@ if(MSGFMT_EXECUTABLE) set(MSGFMT_FOUND TRUE) else(MSGFMT_EXECUTABLE) - FIND_PROGRAM(MSGFMT_EXECUTABLE NAMES msgfmt PATHS /usr/local/bin ) + FIND_PROGRAM(MSGFMT_EXECUTABLE NAMES msgfmt) if (MSGFMT_EXECUTABLE) set(MSGFMT_FOUND TRUE) else (MSGFMT_EXECUTABLE) -- cgit v1.2.1 From 814455b7ad321c88e730662fda58261087b72e72 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 18 Feb 2008 19:06:32 +0000 Subject: some improvements to the docs: -some modules were not at all documented, only few are left now -the copyright message doesn't have to be printed for every module in the docs -fix FindKorundom.cmake, it didn't follow the style guide and had typos (e.g. Korumdum_FOUND instead of KORUNDUM_FOUND) Alex (will commit modified FindKDE4Internal.cmake after Christians commit) svn path=/trunk/KDE/kdelibs/; revision=776742 --- modules/FindMsgfmt.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/FindMsgfmt.cmake') diff --git a/modules/FindMsgfmt.cmake b/modules/FindMsgfmt.cmake index f578b3a2..47c61219 100644 --- a/modules/FindMsgfmt.cmake +++ b/modules/FindMsgfmt.cmake @@ -2,7 +2,7 @@ # Once done this will define # # MSGFMT_FOUND - system has msgfmt -# + # Copyright (c) 2007, Montel Laurent # # Redistribution and use is allowed according to the terms of the BSD license. -- cgit v1.2.1