summaryrefslogtreecommitdiffstats
path: root/Modules/FindGettext.cmake
Commit message (Collapse)AuthorAgeFilesLines
* FindIntl: New module to find Gettext libintlRoger Leigh2014-11-111-0/+3
| | | | | | | | | | | | | | | | Add support for Sun/Uniforum/GNU gettext libintl. This belongs in CMake rather than upstream because: * There are multiple upstreams (Sun, GNU). * It may or may not be in the glibc C library depending upon the platform and build options used. Although we already have a FindGettext module, that is for the tools. This module is for the library, and is independent because it's perfectly OK to use libintl without the gettext tools (and vice versa), and they might not all be found. Add cross references between the two modules in notes to make the relationship clearer.
* Modules: Wrap long lines in pre-formatted documentation blocksBrad King2014-11-061-4/+7
| | | | Help format the blocks better for display without a wide screen.
* Merge topic 'FindGettext-doc-update'Brad King2014-09-221-1/+1
|\ | | | | | | | | 3919f254 FindGettext: Fix name of GETTEXT_PROCESS_POT_FILE in docs (#15162)
| * FindGettext: Fix name of GETTEXT_PROCESS_POT_FILE in docs (#15162)Brad King2014-09-181-1/+1
| | | | | | | | | | | | Rename GETTEXT_PROCESS_POT to GETTEXT_PROCESS_POT_FILE. Patch-by: maahnat@gmail.com
* | Clean up usage of if(... MATCHES regex) followed string(REGEX REPLACE regex)Rolf Eike Beer2014-04-141-2/+2
|/ | | | | | The matches have already been calculated and can simply be taken from CMAKE_MATCH_n variables. This avoids multiple compilations of the same or very similar regular expressions.
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-23/+46
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* FindGettext: fix overwriting result with empty variable (#13691)Rolf Eike Beer2012-11-261-2/+0
| | | | | Remove stray line left by commit 656ab19b (FindGettext: remove code duplicating FPHSA checks, 2012-09-08).
* Merge topic 'include-FPHSA'Brad King2012-09-111-2/+2
|\ | | | | | | | | ff0d1a8 include FPHSA from current directory in all modules
| * include FPHSA from current directory in all modulesRolf Eike Beer2012-09-081-2/+2
| |
* | FindGettext: remove code duplicating FPHSA checksRolf Eike Beer2012-09-081-8/+1
|/
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-17/+17
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-112/+112
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* FindGetText: fix multiple targets with the same name problem (CMP0002)Alex Neundorf2012-02-121-5/+43
| | | | | | | | | | | The functions in FindGettext create a custom target. If the functions are called multiple times, multiple times the same target is created. This works only if CMP0002 is set to OLD. With this patch there is only one central target created, and each invocation of the function creates a target with a unique name and make the central target depend on this one. Alex
* FindGettext: support version selectionRolf Eike Beer2012-01-251-1/+15
|
* FindGettext: two more fixes for files with multiple dotsAlex Neundorf2011-11-161-2/+4
| | | | | | | Another patch by Albert Astals Cid for dealing with translation files with multiple dots. Alex
* -make GETTEXT_PROCESS_PO_FILES() work with files with multiple dotsAlex Neundorf2011-11-151-1/+2
| | | | | | | | | | | Patch by Albert Astals Cid. E.g. plasma_package_org.kde.activityswitcher.po will now be installed correctly as plasma_package_org.kde.activityswitcher.mo, and not as plasma_package_org.mo. This is kind-of related to #12282 Alex
* Strip trailing whitespaceAlex Neundorf2011-11-151-3/+3
| | | | Alex
* Support REQUIRED in FindGettext.cmake (using FPHSA.cmake)Alex Neundorf2011-08-101-0/+3
| | | | Alex
* Add macros GETTEXT_PROCESS_POT() and GETTEXT_PROCESS_PO_FILES()Alex Neundorf2011-08-101-7/+91
| | | | | | | These macros (functions actually) can be used to process pot and po files. Patch prepared by Raphael Kubo da Costa. Alex
* Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-091-1/+1
|
* Convert CMake find-modules to BSD LicenseBrad King2009-09-281-1/+12
| | | | | | | This adds copyright/license notification blocks CMake's find-modules. Many of the modules had no notices at all. Some had notices referring to the BSD license already. This commit normalizes existing notices and adds missing notices.
* BUG: fix #8122, _firstPoFile was not empty because it was no real variableAlexander Neundorf2009-01-101-1/+3
| | | | | | but just a macro argument -> make it a real variable Alex
* BUG: fix 7230: don't ignore first parameter if it's not ALLAlexander Neundorf2008-06-291-1/+1
| | | | Alex
* BUG: fix typo reported by Duncan Mac VicarAlexander Neundorf2007-02-261-1/+1
| | | | Alex
* BUG: add gettext module for working with GNU gettext (#4081)Alexander Neundorf2007-02-021-0/+65
Alex