Nils Gladitz
328e869433
StringUuid: Implement new string(UUID) sub-command.
2014-08-28 15:13:54 +02:00
Ben Boeckel
f718b30a95
ClearMatches: Only clear matches which were actually set
...
ClearMatches was clearing many variables which were never set in the
first place. Instead, store how many matches were made last time and
only clear those. It is moved to the cmMakefile class since it is a
common utility used by multiple commands.
2014-04-29 16:00:05 -04:00
Stephen Kelly
6c19024570
Remove extra semicolons from C++ code.
...
Clang based tools running over the code complain about these,
but clang has a fixit for removing them.
2014-04-03 21:53:14 +02:00
Stephen Kelly
28e1d2f8fc
cmStringCommand: Add GENEX_STRIP subcommand.
...
Strip out any generator expressions in the input string.
2014-03-31 23:18:44 +02:00
Ben Boeckel
85fc9f26a7
stringapi: Command names
2014-03-08 13:05:39 -05:00
Brad King
4e184a21be
string: Add CONCAT sub-command
...
Add a string(CONCAT) command to simply concatenate input arguments
together. This will be useful for combining strings from different
quoting syntaxes. Add a RunCMake.string test covering these cases.
2013-10-21 12:54:20 -04:00
Brad King
e33d8d2d77
Drop builtin command documentation
...
Drop all GetTerseDocumentation and GetFullDocumentation methods from
commands. The command documentation is now in Help/command/*.rst files.
2013-10-16 09:22:36 -04:00
Stephen Kelly
0ab50aea4c
string: Add MAKE_C_IDENTIFIER subcommand
2013-05-21 15:29:34 -04:00
Brad King
763a6dcd33
string: Fix regex documentation of '^' and '$' ( #14028 )
...
They match at the beginning and end of the input, not by line.
Reported-by: Martin Perzl <martin.perzl@web.de>
2013-03-19 13:14:22 -04:00
Petr Kmoch
3cf2f67adc
Documentation: Clarify a few subtleties
...
* Clarify accepted values of <LANG> suffix in CMAKE_COMPILER_IS_GNU<LANG>.
* Clarify fact that target property GENERATOR_FILE_NAME usually cannot be
used at configure time.
* Clarify that enable_language() can only be used in global scope of
top-level project using language.
* State that enable_language(... OPTIONAL) currently doesn't work.
* Document regular expression operator precedence.
2013-03-12 09:29:55 -04:00
David Cole
d842d90622
CMake: Stylistic changes and documentation tweaks
...
...for the contributed file and string TIMESTAMP sub-commands.
2012-12-05 10:39:11 -05:00
Nils Gladitz
711e2b3b5c
CMake: Add TIMESTAMP subcommand to string and file commands
2012-12-05 10:39:10 -05:00
Brad King
0ed6ff7a2e
string: Clarify regex documentation of '-' behavior
...
Mention that it is only special inside brackets. Show an example.
Suggested-by: Alan W. Irwin
2012-10-08 09:32:15 -04:00
Kitware Robot
7bbaa4283d
Remove trailing whitespace from most CMake and C/C++ code
...
Our Git commit hooks disallow modification or addition of lines with
trailing whitespace. Wipe out all remnants of trailing whitespace
everywhere except third-party code.
Run the following shell code:
git ls-files -z -- \
bootstrap doxygen.config '*.readme' \
'*.c' '*.cmake' '*.cpp' '*.cxx' \
'*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \
'*.mm' '*.pike' '*.py' '*.txt' '*.vim' |
egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' |
egrep -z -v '^(Modules/CPack\..*\.in)' |
xargs -0 sed -i 's/ \+$//'
2012-08-13 14:18:39 -04:00
Yury G. Kudryashov
737c49a357
Add 'const' qualifier to some cmCommand members
...
Use const_cast for the special case in cmFindBase where
GetFullDocumentation calls GenerateDocumentation.
2012-02-29 13:27:04 -05:00
Brad King
2e9c26cf96
Add string(MD5) and string(SHA*) commands to compute hashes
...
Provide a CMake-language binding to these cryptographic hashes. Add a
string() command API for MD5, SHA1, SHA224, SHA256, SHA384, and SHA512.
2011-11-16 10:29:35 -05:00
Rolf Eike Beer
ecdad65a45
CMake: Update documentation of STRING(SUBSTRING) for length -1 ( #10740 )
2011-05-27 16:25:08 -04:00
Tim Hütz
1462561a8c
Add a string(FIND) sub-command ( #11795 )
2011-02-15 13:17:51 -05:00
David Cole
d6fe0438c1
Fix issue #9851 - only seed the random number generator on the first call to STRING(RANDOM or if given the new RANDOM_SEED argument. Add test and documentation of new argument.
2009-11-06 10:07:10 -05:00
Brad King
96afb12087
Convert CMake to OSI-approved BSD License
...
This converts the CMake license to a pure 3-clause OSI-approved BSD
License. We drop the previous license clause requiring modified
versions to be plainly marked. We also update the CMake copyright to
cover the full development time range.
2009-09-28 11:43:28 -04:00
Alexander Neundorf
4a23e05237
STYLE: add line breaks to the documentation for CMAKE_MATCH_(0..9),
...
otherwise one might miss this information
Alex
2009-03-13 14:58:13 -04:00
Ken Martin
0e69d38004
ENH: add return and break support to cmake, also change basic command invocation signature to be able to return extra informaiton via the cmExecutionStatus class
2008-01-23 10:28:26 -05:00
Amitha Perera
4d9259c15b
STYLE: Spelling fixes on documentation
2008-01-09 22:09:19 -05:00
Ken Martin
8d32d229a3
ENH: make commands lower case by default
2007-10-10 11:47:43 -04:00
Alexander Neundorf
291b3d0543
STYLE: add the | to the docs
...
Alex
2007-08-30 10:26:01 -04:00
Alexander Neundorf
a4e6bd1515
STYLE: add docs about the supported regexp characters and CMAKE_MATCH_(0..9)
...
Alex
2007-08-29 14:05:46 -04:00
Alexander Neundorf
e80acd971c
ENH: also store the group matches from IF( MATCHES) in CMAKE_MATCH_(0..9)
...
Alex
2007-08-29 11:58:38 -04:00
Alexander Neundorf
d0833b7bc3
COMP: header was missing...
...
Alex
2007-08-21 12:34:06 -04:00
Alexander Neundorf
bf354fa308
STYLE: fix documentation for STRING(REPLACE) #5536
...
Alex
2007-08-21 10:56:25 -04:00
Andy Cedilnik
1d4613a63b
ENH: Add STRING STRIP command
2007-04-26 21:50:52 -04:00
Brad King
b81eff588d
STYLE: Fixed line-too-long.
2007-04-25 17:48:51 -04:00
Ken Martin
c4fc2c19c7
ENH: Add command to generate random strings
2007-04-23 11:04:12 -04:00
Bill Hoffman
6b47b28867
ENH: fix line length style stuff
2006-03-10 11:13:15 -05:00
Bill Hoffman
9891260a6d
ENH: add support for watcom wmake and wcl386
2006-01-17 10:21:45 -05:00
Bill Hoffman
097debb55a
BUG: end is not really end, but rather length
2005-10-20 10:11:03 -04:00
Andy Cedilnik
12ef4edf64
ENH: Add String length and substring
2005-10-17 09:56:42 -04:00
Andy Cedilnik
6e5cdd6de7
ENH: Add regular string replace (not regex), and relative path command. Also add tests
2005-10-17 09:10:20 -04:00
Ken Martin
345cf04012
ENH: big change that includes immediate subdir support, removing the notion of inherited commands, makefiles no longer read in the parent makefiles but instead inherit thier parent makefiles current settings
2005-03-18 10:41:41 -05:00
Brad King
c93d43b09e
ENH: Documented use of \1 syntax in replace expression.
2004-05-03 10:10:57 -04:00
Brad King
4990e1481d
ENH: Added STRING(CONFIGURE ...) command.
2004-03-04 10:05:14 -05:00
Andy Cedilnik
54785fafba
ENH: Make more commands scriptable
2004-02-06 13:47:11 -05:00
Ken Martin
072db6ad70
removed redundent includes
2003-08-10 18:30:54 -04:00
Andy Cedilnik
c4275f54c7
ENH: Add upper and lower case support. Close Bug #79 - STRING TOUPPER and TOLOWER
2003-07-10 13:25:54 -04:00
Brad King
eb7b7dc104
BUG: Removed extra newlines from help text.
2003-07-07 22:54:26 -04:00
Brad King
33d55456c3
BUG: Command should be inherited.
2003-03-19 10:16:57 -05:00
Brad King
a02574158d
ENH: Cleaned up documentation and formatted it for use by cmDocumentation.
2003-02-14 18:47:16 -05:00
Andy Cedilnik
6244ac6f06
Add a way to convert ascii to string
2003-01-01 17:34:47 -05:00
Brad King
d66aa2262a
ENH: Added COMPARE modes to STRING command.
2002-12-04 18:44:39 -05:00
Brad King
42c464c05e
ENH: Added STRING command.
2002-11-06 17:35:27 -05:00