summaryrefslogtreecommitdiff
path: root/Modules/Platform/UnixPaths.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-05 11:09:15 -0400
committerBrad King <brad.king@kitware.com>2009-10-05 11:09:15 -0400
commitc118fd4c556ea5190355f2d64f5aef8dee235cdb (patch)
treec9689ecfc34ea469965f4f58764fb552ff7f2a9f /Modules/Platform/UnixPaths.cmake
parent82c8b48c2aa3f3a0f34b14094271e0e76b900c10 (diff)
downloadcmake-c118fd4c556ea5190355f2d64f5aef8dee235cdb.tar.gz
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.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake
index 584d3346c3..7cab433745 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}"