summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/cmake_path
Commit message (Collapse)AuthorAgeFilesLines
* cmake_path: Fix 'GET "foo/.." STEM' resultFeRD (Frank Dana)2024-08-261-0/+67
| | | | | | | | | | | | | | | | | `cmake_path(GET "foo/.." STEM out)` is supposed to set `out` to `".."`, the entire `cmake_path(GET "foo/.." FILENAME)` result. However, the `GetNarrowStem()` logic in `cmCMakePath` was lacking the `.` and `..` special-casing logic present in other methods. As a result, it would erroneously trim the second `.` off of a stem of `..` and return only `.`. This caused the result of `cmake_path(GET "foo/.." STEM)` to be `"."`. Making the standard empty-or-.-or-.. checks and bailing out early fixes the result of `cmCMakePaths{".."}.GetNarrowStem()`. Fixes: #26235
* Tests/RunCMake: Update cmake_minimum_required versionsBrad King2023-02-111-3/+0
| | | | | | | | 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`.
* cmCMakePathCommand: Enforce non-empty string arguments via binding typeBrad King2022-07-282-0/+7
|
* cmCMakePathCommand: Report keyword errors via argument parser resultsBrad King2022-07-222-2/+6
|
* Tests: Add RunCMake.cmake_path cases for BASE_DIRECTORY missing valueBrad King2022-07-202-0/+10
|
* cmake_path: rename 'GET ... RELATIVE_PATH' to 'GET ... RELATIVE_PART'Marc Chevrier2021-01-2811-24/+24
| | | | | | | For consistency, subcommand 'HAS_RELATIVE_PATH' is also renamed to 'HAS_RELATIVE_PART'. Fixes: #21385
* cmake_path: various updatesMarc Chevrier2021-01-132-5/+5
| | | | | | To follow discussions in #21385 and !5682: * Fix bug in cmCMakePath::IsSuffix() method * cmake_path(HASH) always normalized paths (NORMALIZE option removed)
* cmake_path: various enhancements to subcommands/keywordsMarc Chevrier2020-11-1115-80/+28
| | | | This change address partly the remarks done in issue #21385
* cmake_path command: path managementMarc Chevrier2020-09-06178-0/+1689
Fixes: #19568, #20922