CMAKE_FIND_PACKAGE_SORT_DIRECTION¶
在 3.7 版被加入.
在 4.2 版的變更: The default sort direction has changed from DEC to ASC.
The sorting direction used by CMAKE_FIND_PACKAGE_SORT_ORDER.
It can assume one of the following values:
ASCOrdering is done in ascending mode. The lowest folder found will be tested first.
DECDefault. Ordering is done in descending mode. The highest folder found will be tested first.
If CMAKE_FIND_PACKAGE_SORT_ORDER is set to NONE this variable
has no effect.