summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageStack.h
Commit message (Collapse)AuthorAgeFilesLines
* install(PACKAGE_INFO): Add version and location to package dependenciesTaylor Sasser2025-08-121-3/+25
| | | | | | | Refactor `cmFindPackageStack` to track additional metadata about <package> found. This includes two new fields, `Version` and `Location` which correspond to package version and path. The remaining package information will be implemented in a later commit
* cmFindPackageStack: Allow controlled mutationMatthew Woehlke2025-07-301-3/+37
| | | | | | | | | | | As mentioned in the previous commit, we would like to record additional information in the find-package stack, but we don't have the information at the point a stack entry is created. This necessitates making the stack mutable. However, in order to restrict mutation, do not directly expose the mutable value, and instead arrange for it to be accessible only via cmFindPackageStackRAII (renamed and extracted from cmMakefile). This ensures that mutation can only happen while the stack is being built.
* cmStack: New, mutable stack classMatthew Woehlke2025-07-301-4/+5
| | | | | | | | | | | | | | We would like to record additional information in the find-package stack, but we don't have the information at the point a stack entry is created. The most sane way to handle this appears to be making the stack mutable, at least under specific circumstances. To facilitate this, we need a mutable stack type. Refactor cmConstStack into cmStack, with the ability to either allow or forbid mutation of its data. Re-add cmConstStack as a type alias. This doesn't yet allow mutating cmFindPackageStack, but it's a necessary step toward being able to do so.
* LICENSE: Replace references to Copyright.txt with LICENSE.rstKitware Robot2025-03-031-1/+1
| | | | | | | | | | ``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
* install(EXPORT): Export find_dependency() callsKyle Edwards2023-11-131-0/+33
Issue: #20511 Co-Authored-by: Brad King <brad.king@kitware.com> Co-Authored-by: Robert Maynard <rmaynard@nvidia.com>