Find locally installed software first

This commit re-orders the search path prefix list from

  /
  /usr
  /usr/local

to

  /usr/local
  /
  /usr

so that locally-installed software is preferred.

This makes the search consistent with the Filesystem Hierarchy Standard:

  http://www.pathname.com/fhs/

See issue #9657.
This commit is contained in:
Brad King 2009-10-05 11:09:15 -04:00
parent 82c8b48c2a
commit c118fd4c55
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH)
# search types.
LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
# Standard
/ /usr /usr/local
/usr/local / /usr
# CMake install location
"${_CMAKE_INSTALL_DIR}"