mirror of
https://github.com/reactos/CMake.git
synced 2024-12-03 17:11:04 +00:00
31be918b0b
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.
17 lines
495 B
ReStructuredText
17 lines
495 B
ReStructuredText
CMAKE_FIND_PACKAGE_SORT_DIRECTION
|
|
---------------------------------
|
|
|
|
The sorting direction used by :variable:`CMAKE_FIND_PACKAGE_SORT_ORDER`.
|
|
It can assume one of the following values:
|
|
|
|
``DEC``
|
|
Default. Ordering is done in descending mode.
|
|
The highest folder found will be tested first.
|
|
|
|
``ASC``
|
|
Ordering is done in ascending mode.
|
|
The lowest folder found will be tested first.
|
|
|
|
If :variable:`CMAKE_FIND_PACKAGE_SORT_ORDER` is not set or is set to ``NONE``
|
|
this variable has no effect.
|