summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
Commit message (Collapse)AuthorAgeFilesLines
* cmake -E tar: Add --touch optionKasper Laudrup2022-03-231-3/+8
| | | | | | | | 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
* file(DOWNLOAD): Add options to download a rangem.klimenko2022-02-151-0/+31
|
* file: Fix types of the OFFSET and LIMIT argumentsAlexey Edelev2022-01-131-14/+9
| | | | | | | | | | 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
* Merge topic 'file-READ_ELF-capture-error'Brad King2022-01-121-3/+8
|\ | | | | | | | | | | | | | | 41bebbe50a file: Restore error capture in undocumented READ_ELF mode Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6853
| * file: Restore error capture in undocumented READ_ELF modeBrad King2022-01-111-3/+8
| | | | | | | | | | | | | | | | | | 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
* | cmFileCommand: Update for new signature of GetLineFromStreamBrad King2022-01-111-6/+4
| |
* | Source: Replace most calls to sprintf with snprintfSean McBride2021-10-251-3/+4
|/
* cmFileCommand: improve error messageSeth R Johnson2021-10-121-3/+6
| | | | | Print full list of unresolved dependencies and a phrase that indicates what about the file is unresolved.
* Source: Fix clang -Wimplicit-fallthrough warningsSean McBride2021-09-281-1/+2
|
* Rename cmProp in cmValueMarc Chevrier2021-09-211-5/+5
|
* cmCurlSetCAInfo: use std::string as argumentMarc Chevrier2021-09-191-2/+2
|
* cmCurl: Adopt helper to fix file:// URLsBrad King2021-09-151-35/+2
| | | | | | 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).
* cmProp: refactoring: transform alias in classMarc Chevrier2021-08-081-2/+2
| | | | | | 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.
* cmELF: Include the ELF parsing code unconditionallyAlex Richardson2021-06-241-14/+6
| | | | | Now that the ELF definitions are provided on all platforms there is no need to keep the CMake_USE_ELF_PARSER option.
* install(TARGETS): Add RUNTIME_DEPENDENCIES optionKyle Edwards2021-06-041-3/+2
|
* file: Add undocumented RPATH_SET commandKyle Edwards2021-06-041-0/+61
|
* Refactor: Modify file(RPATH_*) to use cmArgumentParserKyle Edwards2021-06-041-77/+61
|
* file(GET_RUNTIME_DEPENDENCIES): Add undocumented RPATH_PREFIX optionKyle Edwards2021-06-041-0/+7
|
* file(GET_RUNTIME_DEPENDENCIES): Add POST_{IN,EX}CLUDE_FILES argumentsKyle Edwards2021-06-011-10/+24
|
* cmFileCommand: Remove unused local variableBrad King2021-04-281-3/+0
|
* file(REAL_PATH): add option EXPAND_TILDEMarc Chevrier2021-04-211-3/+20
| | | | | This option enables the replacement of any leading tilde with the path to the user's home directory.
* cmSystemTools: Return KWSys Status from CreateLink and CreateSymlinkBrad King2021-04-151-2/+4
|
* Update CMake code using KWSys to account for Status return valuesBrad King2021-04-141-3/+6
| | | | | | 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.
* Merge topic 'commands-file-permissions'Brad King2021-03-291-7/+7
|\ | | | | | | | | | | | | | | | | | | 769ff05483 Help: Clarify permission-related command options 900184616a Cleanup: Fix misspelt name of local C++ variable 635431a0c9 Tests: Check host platform instead of target for running stat 4ceb0ca59e Tests: Remove redundant files for configure_file() tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5945
| * Cleanup: Fix misspelt name of local C++ variableCraig Scott2021-03-261-7/+7
| |
* | file: add `COPY_FILE` subcommandBen Boeckel2021-03-101-0/+92
| | | | | | | | | | | | The `file(COPY)` subcommand is overloaded and busy for such a simple operation. Instead, make a simpler subcommand with error handling support.
* | file(RENAME): Add option to not replace existing pathBrad King2021-03-041-3/+14
| | | | | | | | | | Add a `NO_REPLACE` option that prevents overwriting `<newname>` if it exists.
* | cmSystemTools: Add RenameFile option to not replace destinationBrad King2021-03-041-1/+3
| |
* | file(RENAME): Add option to capture error message on failureBrad King2021-03-041-7/+34
|/
* Rename CMAKE_USE_ELF_PARSER to CMake_USE_ELF_PARSERBrad King2021-02-031-2/+2
| | | | We use the `CMake_` prefix for options affecting CMake itself.
* file(CONFIGURE): Use text mode for default OUTPUT contentCristian Adam2021-02-021-1/+3
| | | | | | This affects only Windows where \n will be translated as \r\n Fixes: #21769
* Merge topic 'issue-19198'Brad King2021-02-021-4/+20
|\ | | | | | | | | | | | | | | 255df8622b file(GENERATE): Support new line style Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !5649
| * file(GENERATE): Support new line styleAsit Dhal2021-02-011-4/+20
| | | | | | | | Fixes: #19198
* | file(CONFIGURE): Fix newlines in CONTENTCristian Adam2021-01-291-6/+8
|/ | | | Fixes: #21749
* clang-tidy: fix `bugprone-signed-char-misuse` warningsBen Boeckel2021-01-271-2/+1
|
* clang-tidy: fix `bugprone-reserved-identifier` warningsBen Boeckel2021-01-271-1/+1
|
* file(GENERATE): Support options to manipulate file permissionsAsit Dhal2020-12-211-9/+73
| | | | Fixes: #15653
* file(configure): Order of named options should be specified in any orderAsit Dhal2020-12-131-30/+55
| | | | Fixes: #20915
* Merge topic 'file-configure-angle-brackets'Brad King2020-10-161-9/+1
|\ | | | | | | | | | | | | 06a9a3bdc3 file(CONFIGURE): Allow angle brackets in content Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5379
| * file(CONFIGURE): Allow angle brackets in contentCristian Adam2020-10-151-9/+1
| | | | | | | | Fixes: #21306
* | file(GENERATE): Refactor options handlingAsit Dhal2020-10-121-29/+73
|/
* file(ARCHIVE_CREATE): Add option to control compression levelAsit Dhal2020-09-211-11/+41
| | | | Fixes: #21125
* file(): Add REAL_PATH sub-commandMarc Chevrier2020-09-081-0/+46
|
* cmMakefile::GetDefinition: return cmPropVitaly Stakhovsky2020-09-021-6/+7
|
* file: Add CHMOD and CHMOD_RECURSE subcommandsSibi Siddharthan2020-08-261-0/+160
| | | | | | Fixes: #21057 Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
* file(GENERATE): Add TARGET argumentRaul Tambre2020-08-201-10/+25
| | | | | | | Adds TARGET argument to file(GENERATE) to make resolving generator expressions requiring a target possible. Implements #21101, fixes #21074.
* Correct a typo in cmFileCommand.cxxFelix Yan2020-08-061-1/+1
|
* file(DOWNLOAD): Make file argument optionalKyle Edwards2020-07-271-22/+41
|
* Merge topic 'file-ARCHIVE-files-dirs'Brad King2020-07-011-35/+22
|\ | | | | | | | | | | | | bbcff21f71 file(ARCHIVE*): Collapse FILES and DIRECTORY options Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4955
| * file(ARCHIVE*): Collapse FILES and DIRECTORY optionsCraig Scott2020-06-301-35/+22
| | | | | | | | | | | | | | | | 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