summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/configure_file
Commit message (Collapse)AuthorAgeFilesLines
* Tests/RunCMake: Update cmake_minimum_required versionsBrad King2023-02-111-1/+1
| | | | | | | | For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.5 where possible. Also, remove `cmake_minimum_required()` and `project()` calls from individual cases where they are handled by `CMakeLists.txt`.
* cmake: Print configure/generate timeKyle Edwards2023-01-192-4/+4
|
* MSYS: Add support for running under MSYS runtime environmentOrgad Shaneh2021-04-262-2/+2
| | | | Detect MSYS as CYGWIN, with the required adaptations.
* Tests: Check host platform instead of target for running statCraig Scott2021-03-262-6/+6
|
* Tests: Remove redundant files for configure_file() testsCraig Scott2021-03-262-0/+0
|
* configure_file: Add option for user defined permissionsAsit Dhal2020-10-2421-0/+135
| | | | | | | User defined permissions and options to copy permissions are implemented. Fixes: #20866
* configure_file: Add option to control file permissions transfer to copyRahul Gottipati2020-06-303-0/+14
| | | | Issue: #20866
* Makefiles: Re-run CMake if file configured in subdirectory is missingHugh Sorby2020-02-143-7/+8
| | | | | | | Add files configured by all subdirectories to `CMAKE_MAKEFILE_PRODUCTS` rather than just those from the top level. Fixes: #19719
* configure_file: canonicalize input and output path in dependenciesFrank Benkstein2018-11-131-1/+1
| | | | | | | | | | | | | | | | Represent the input file path internally in canonical form. Otherwise multiple `configure_file` calls that share the same input file but specify it relative to different directories (e.g. via `../`) result in multiple copies of the dependency on the rule to re-run CMake. This causes the Ninja generator to emit duplicate phony build statements for these dependencies, which generates an error with `-w dupbuild=err`, which will be default in Ninja 1.9. Also canonicalize the output path for consistency. Add a test case. Fixes: #18584
* Tests: Add more signature tests to RunCMake.configure_file testBrad King2015-03-0923-0/+78
| | | | | | | Move the test cases from Tests/CMakeTests/ConfigureFileTest.cmake.in over to use the RunCMake.configure_file infrastructure. This does much more robust verification of CMake output for each test case, and would have caught the regression fixed in our parent commit.
* configure_file: Test that CMake re-runs on input change or output missingBrad King2015-01-276-0/+50
| | | | | | | | With the Makefile generators we expect that touching or modifying the input file of a configure_file, or removing its output, will cause CMake to re-run on the next build. Extend the RunCMake.configure_file test with a case covering this. Also check that CMake does not re-run if nothing has changed.
* configure_file: Warn about unknown argumentsBrad King2014-10-313-0/+13
| | | | | | | Extend the RunCMake.configure_file test with a case covering possible common typos of the COPYONLY option. Reported-by: Iosif Neitzke <iosif.neitzke@gmail.com>
* Unicode: check encoding of files given to configure_file.Clinton Stimpson2014-03-1722-0/+53
UTF-16 and UTF-32 files are rejected.