Kasper Laudrup
0b7fd783f8
cmake -E tar: Add --touch option
Similar to GNU tar add a --touch option to the tar extract command to
skip extracting the timestamps from the files in the archive
effectively touching them as if they were just created.
Issue: #22746
3 years ago
m.klimenko
231872ddb0
file(DOWNLOAD): Add options to download a range
4 years ago
Alexey Edelev
fd0c285b12
file: Fix types of the OFFSET and LIMIT arguments
OFFSET argument cannot handle offsets bigger than INT_MAX because of
the atoi function, which is used to convert the argument string to integer.
Same applies for the LIMIT argument.
Use the steam based reading and 64-bit types to convert and store arguments
to avoid invalid values stored in the corresponding variables.
Fixes : #23076
4 years ago
Brad King
41bebbe50a
file: Restore error capture in undocumented READ_ELF mode
Revise the error message added by commit 115ff6a347
(cmELF: Include the
ELF parsing code unconditionally, 2021-06-17, v3.22.0-rc1~557^2) to
honor the `CAPTURE_ERROR` option. This is needed by the call site in
`BundleUtilities` to suppress errors on non-ELF files.
Fixes : #23074
4 years ago
Brad King
0d37dae5f9
cmFileCommand: Update for new signature of GetLineFromStream
4 years ago
Sean McBride
5ba6e8ac59
Source: Replace most calls to sprintf with snprintf
4 years ago
Seth R Johnson
fc92d6640b
cmFileCommand: improve error message
Print full list of unresolved dependencies and a phrase that indicates
what about the file is unresolved.
4 years ago
Sean McBride
37859e3244
Source: Fix clang -Wimplicit-fallthrough warnings
4 years ago
Marc Chevrier
cc56dc7468
Rename cmProp in cmValue
4 years ago
Marc Chevrier
062432a6bc
cmCurlSetCAInfo: use std::string as argument
4 years ago
Brad King
63b5a6869e
cmCurl: Adopt helper to fix file:// URLs
Migrate and generalize the helper added by commit e63dcb1378
(Encoding:
Use encoding libcurl expects with file: urls., 2014-11-05,
v3.2.0-rc1~420^2).
4 years ago
Marc Chevrier
e5cd39ca80
cmProp: refactoring: transform alias in class
To handle safely the values used by CMake variables and properties,
introduce the class cmProp as a replacement from the simple pointer
to std::string instance.
4 years ago
Alex Richardson
115ff6a347
cmELF: Include the ELF parsing code unconditionally
Now that the ELF definitions are provided on all platforms there is no
need to keep the CMake_USE_ELF_PARSER option.
4 years ago
Kyle Edwards
ed3633d88c
install(TARGETS): Add RUNTIME_DEPENDENCIES option
4 years ago
Kyle Edwards
9f6cfe7169
file: Add undocumented RPATH_SET command
4 years ago
Kyle Edwards
fac22d6596
Refactor: Modify file(RPATH_*) to use cmArgumentParser
4 years ago
Kyle Edwards
2ef3ea394f
file(GET_RUNTIME_DEPENDENCIES): Add undocumented RPATH_PREFIX option
4 years ago
Kyle Edwards
a12639e658
file(GET_RUNTIME_DEPENDENCIES): Add POST_{IN,EX}CLUDE_FILES arguments
4 years ago
Brad King
1898f9dd82
cmFileCommand: Remove unused local variable
4 years ago
Marc Chevrier
e4b793c614
file(REAL_PATH): add option EXPAND_TILDE
This option enables the replacement of any leading tilde with the path
to the user's home directory.
4 years ago
Brad King
7f89053953
cmSystemTools: Return KWSys Status from CreateLink and CreateSymlink
4 years ago
Brad King
ec1b6157cb
Update CMake code using KWSys to account for Status return values
KWSys as of 2021-04-14 changed the return type of `SystemTools`
operations from `bool` to `Status`. Update our call sites.
This may improve error reporting accuracy in a few places.
4 years ago
Craig Scott
900184616a
Cleanup: Fix misspelt name of local C++ variable
4 years ago
Ben Boeckel
088444211e
file: add `COPY_FILE` subcommand
The `file(COPY)` subcommand is overloaded and busy for such a simple
operation. Instead, make a simpler subcommand with error handling
support.
4 years ago
Brad King
9bf40d8027
file(RENAME): Add option to not replace existing path
Add a `NO_REPLACE` option that prevents overwriting `<newname>`
if it exists.
4 years ago
Brad King
3600c6cd8c
cmSystemTools: Add RenameFile option to not replace destination
4 years ago
Brad King
c61292726c
file(RENAME): Add option to capture error message on failure
4 years ago
Brad King
b6071c93f5
Rename CMAKE_USE_ELF_PARSER to CMake_USE_ELF_PARSER
We use the `CMake_` prefix for options affecting CMake itself.
5 years ago
Cristian Adam
05f16ca7ee
file(CONFIGURE): Use text mode for default OUTPUT content
This affects only Windows where \n will be translated as \r\n
Fixes : #21769
5 years ago
Asit Dhal
255df8622b
file(GENERATE): Support new line style
Fixes : #19198
5 years ago
Cristian Adam
6e225efd8c
file(CONFIGURE): Fix newlines in CONTENT
Fixes : #21749
5 years ago
Ben Boeckel
a0610cf9e9
clang-tidy: fix `bugprone-signed-char-misuse` warnings
5 years ago
Ben Boeckel
c826461d9c
clang-tidy: fix `bugprone-reserved-identifier` warnings
5 years ago
Asit Dhal
c3385dd8bd
file(GENERATE): Support options to manipulate file permissions
Fixes : #15653
5 years ago
Asit Dhal
6d0712c225
file(configure): Order of named options should be specified in any order
Fixes : #20915
5 years ago
Cristian Adam
06a9a3bdc3
file(CONFIGURE): Allow angle brackets in content
Fixes : #21306
5 years ago
Asit Dhal
2713a4fb37
file(GENERATE): Refactor options handling
5 years ago
Asit Dhal
195d14e781
file(ARCHIVE_CREATE): Add option to control compression level
Fixes : #21125
5 years ago
Marc Chevrier
be36266dab
file(): Add REAL_PATH sub-command
5 years ago
Vitaly Stakhovsky
11425041f0
cmMakefile::GetDefinition: return cmProp
5 years ago
Sibi Siddharthan
7de60beddf
file: Add CHMOD and CHMOD_RECURSE subcommands
Fixes : #21057
Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
5 years ago
Raul Tambre
27a912193b
file(GENERATE): Add TARGET argument
Adds TARGET argument to file(GENERATE) to make resolving generator expressions
requiring a target possible.
Implements #21101 , fixes #21074 .
5 years ago
Felix Yan
5dd710286f
Correct a typo in cmFileCommand.cxx
5 years ago
Kyle Edwards
fed7d8f76d
file(DOWNLOAD): Make file argument optional
5 years ago
Craig Scott
bbcff21f71
file(ARCHIVE*): Collapse FILES and DIRECTORY options
The two options were concatenated internally for both ARCHIVE_CREATE
and ARCHIVE_EXTRACT. The distinction between files and dirs was not
meaningful. Therefore, replace them with PATHS or PATTERNS
to more accurately describe the way the options are used.
Fixes : #20884
5 years ago
Brad King
e5f5eeca2f
file: Fix CONFIGURE output relative path
In commit a6fee09484
(file: Add CONFIGURE subcommand, 2020-03-06,
v3.18.0-rc1~584^2) we accidentally treated relative path outputs
with respect to the current working directory. Treat them with
respect to the current binary directory instead.
Fixes : #20885
5 years ago
Craig Scott
95159b7dea
file(ARCHIVE_CREATE): Rename TYPE option to COMPRESSION
Fixes : #20883
5 years ago
Dmitry Kalinkin
ef215b0851
cmFileCommand: Log cmsys::Glob warnings
5 years ago
Marc Chevrier
2faa3f6c55
Refactoring: Third-parties public headers are under cm3p prefix
Fixes : #20666
5 years ago
Marc Chevrier
8d4a9ee398
Refactoring: rename "cm_static_string_view.hxx" as <cmext/string_view>
5 years ago