diff options
author | Brad King <brad.king@kitware.com> | 2009-10-05 15:09:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-05 15:09:15 (GMT) |
commit | c118fd4c556ea5190355f2d64f5aef8dee235cdb (patch) | |
tree | c9689ecfc34ea469965f4f58764fb552ff7f2a9f /Modules/Platform/UnixPaths.cmake | |
parent | 82c8b48c2aa3f3a0f34b14094271e0e76b900c10 (diff) | |
download | CMake-c118fd4c556ea5190355f2d64f5aef8dee235cdb.zip CMake-c118fd4c556ea5190355f2d64f5aef8dee235cdb.tar.gz CMake-c118fd4c556ea5190355f2d64f5aef8dee235cdb.tar.bz2 |
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.
Diffstat (limited to 'Modules/Platform/UnixPaths.cmake')
-rw-r--r-- | Modules/Platform/UnixPaths.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake index 584d334..7cab433 100644 --- a/Modules/Platform/UnixPaths.cmake +++ b/Modules/Platform/UnixPaths.cmake @@ -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}" |