summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Darwin.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-08-31 18:16:59 (GMT)
committerBrad King <brad.king@kitware.com>2010-09-01 12:50:51 (GMT)
commiteae45a67e7901b9b5531a4cd49e9716e8edb3956 (patch)
tree953f1c998c22a44f0605cca3ad16794c54514490 /Modules/Platform/Darwin.cmake
parent81a76fedd7abdbc8ce840ff7c8ecc7a8c68e26bf (diff)
downloadCMake-eae45a67e7901b9b5531a4cd49e9716e8edb3956.zip
CMake-eae45a67e7901b9b5531a4cd49e9716e8edb3956.tar.gz
CMake-eae45a67e7901b9b5531a4cd49e9716e8edb3956.tar.bz2
Search MacPorts /opt/local prefix on Mac
Include this prefix in CMAKE_SYSTEM_PREFIX_PATH so that it will be used for all find* commands. Previously only find_library and find_path would look under /opt/local/lib and /opt/local/include, respectively.
Diffstat (limited to 'Modules/Platform/Darwin.cmake')
-rw-r--r--Modules/Platform/Darwin.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index c8bcad1..db0642e 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -235,4 +235,7 @@ SET(CMAKE_SYSTEM_APPBUNDLE_PATH
/Developer/Applications)
INCLUDE(Platform/UnixPaths)
-LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH /sw)
+LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
+ /sw # Fink
+ /opt/local # MacPorts
+ )