mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 18:29:37 -06:00
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.
This commit is contained in:
@@ -15,6 +15,7 @@ String operations.
|
||||
string(REPLACE <match_string>
|
||||
<replace_string> <output variable>
|
||||
<input> [<input>...])
|
||||
string(CONCAT <output variable> [<input>...])
|
||||
string(<MD5|SHA1|SHA224|SHA256|SHA384|SHA512>
|
||||
<output variable> <input>)
|
||||
string(COMPARE EQUAL <string1> <string2> <output variable>)
|
||||
@@ -51,6 +52,9 @@ through argument parsing.
|
||||
REPLACE will replace all occurrences of match_string in the input with
|
||||
replace_string and store the result in the output.
|
||||
|
||||
CONCAT will concatenate all the input arguments together and store
|
||||
the result in the named output variable.
|
||||
|
||||
MD5, SHA1, SHA224, SHA256, SHA384, and SHA512 will compute a
|
||||
cryptographic hash of the input string.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user