summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_program/RunCMakeTest.cmake
Commit message (Collapse)AuthorAgeFilesLines
* find_*(): Add CMAKE_IGNORE_PREFIX_PATH variableKyle Edwards2022-02-021-0/+1
| | | | Fixes: #20878
* cmake: Add filtered debug-find optionsJohn Parent2021-12-171-0/+2
| | | | | | | | | | Add a `--debug-find-pkg=` option to debug find calls for specific packages. Add a `--debug-find-var=` option to debug find calls for specific return variables. Fixes: #21880
* find_*: Add support for option NO_CACHEMarc Chevrier2021-06-021-0/+1
| | | | | | | | Request that find result is stored in a normal variable rather than a cache entry. Fixes: #20687 Issue: #20743
* MSYS: Add support for running under MSYS runtime environmentOrgad Shaneh2021-04-261-1/+1
| | | | Detect MSYS as CYGWIN, with the required adaptations.
* find_program: Find programs that are executable but not readableBrad King2020-06-151-1/+3
| | | | | | | | | This fix was first made by commit 86e6349ef7 (find_program: Find programs that are executable but not readable, 2020-04-04, v3.18.0-rc1~372^2) but was reverted for compatibility. Re-introduce it with a policy for compatibility. Fixes: #10468
* Merge topic 'bundle-exe-space-in-name'Brad King2020-06-151-0/+4
|\ | | | | | | | | | | | | d3fd518c03 find_program: Properly decode URL for bundle exe name with spaces Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4891
| * find_program: Properly decode URL for bundle exe name with spacesCraig Scott2020-06-141-0/+4
| | | | | | Fixes: #20817
* | find_program: Revert "Find programs that are executable but not readable"Brad King2020-06-121-3/+9
|/ | | | | | | | | | | | | | The fix in commit 86e6349ef7 (find_program: Find programs that are executable but not readable, 2020-04-04, v3.18.0-rc1~372^2) can break existing projects that were (likely accidentally) relying on the old behavior to find files that are readable but not executable. Revert the fix for now. We can re-introduce it with a policy later. Instead of reverting the test case, update it to cover the old behavior. That can serve as a reference for testing the policy when introduced. Fixes: #20814 Issue: #10468
* find_program: Find programs that are executable but not readableVladimir Menshakov2020-04-091-0/+4
| | | | | | | | | `find_program` internally uses `cmSystemTools::FileExists` which calls `access(R_OK)` instead of `access(X_OK)`. Use `cmSystemTools::IsFileExecutable` instead to fix this issue. An example of such a program is `sudo`. Fixes: #10468
* find_*: Add support for REQUIRED keywordSylvain Joubert2020-03-061-0/+1
| | | | | | In the same spirit as the REQUIRED keyword on find_package, this will stop cmake execution with an error on a failed find_program, find_file, find_path or find_library.
* find_program: Consider CWD only for paths with separatorSam Yates2018-06-141-0/+1
| | | | | | | | | | | | | | | | | | find_program() incorrectly prepended search path components to absolute file paths, and incorrectly searched the current working directory for files that contained no directory separators. * Replace calls cmFindProgramHelper::CheckDirectory(std::string()) with call of new method cmFindProgramHelper::CheckCompoundNames() that checks for the presence of a directory separator in the file name. * Use cmSystemTools::CollapseCombinedPath rather than string concatenation to properly combine absolute file names with search path components. * Add unit tests to verify corrections. Fixes: #18044
* Tests: Cover find_program when the environment duplicate some HINTSBrad King2015-09-151-0/+1
| | | | Reported-by: Marc CHEVRIER <marc.chevrier@sap.com>
* find_program: Optionally consider all names in each directoryBrad King2015-09-021-0/+1
| | | | | | | When more than one value is given to the NAMES option this command by default will consider one name at a time and search every directory for it. Add a NAMES_PER_DIR option to tell this command to consider one directory at a time and search for all names in it.
* Tests: Add explicit testing for find_programBrad King2015-09-021-0/+8
Previously this command was tested only implicitly as part of larger tests. Add a RunCMake.find_program test to cover find_program cases specifically and independently.