summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_FIND_PACKAGE_SORT_ORDER.rst
Commit message (Collapse)AuthorAgeFilesLines
* find_package: Optionally sort globbed directories in a meaningful orderPierluigi Taddei2016-09-151-0/+36
Add `CMAKE_FIND_PACKAGE_SORT_{ORDER,DIRECTION}` variables to specify sort order and direction. When multiple package with the same name have been found in the same location sorting option can be used to force a specific version to be loaded (e.g. libA_1.12.0 instead of libA_1.1.0). Currently sorting by NAME and by NATURAL order have been implemented. Natural ordering makes use of the `strverscmp(3)` ordering.