CMAKE_FIND_PACKAGE_SORT_DIRECTION

From Get docs
Cmake/docs/3.21/variable/cmake find package sort direction


CMAKE_FIND_PACKAGE_SORT_DIRECTION

New in version 3.7.


The sorting direction used by 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 CMAKE_FIND_PACKAGE_SORT_ORDER is not set or is set to NONE this variable has no effect.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_FIND_PACKAGE_SORT_DIRECTION.html