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.
This commit is contained in:
Brad King 2010-08-31 14:16:59 -04:00
parent 81a76fedd7
commit eae45a67e7
2 changed files with 6 additions and 3 deletions

View File

@ -235,4 +235,7 @@ SET(CMAKE_SYSTEM_APPBUNDLE_PATH
/Developer/Applications) /Developer/Applications)
INCLUDE(Platform/UnixPaths) INCLUDE(Platform/UnixPaths)
LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH /sw) LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
/sw # Fink
/opt/local # MacPorts
)

View File

@ -51,7 +51,7 @@ LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH
/usr/X11R6/include /usr/include/X11 /usr/X11R6/include /usr/include/X11
# Other # Other
/opt/local/include /usr/pkg/include /usr/pkg/include
/opt/csw/include /opt/include /opt/csw/include /opt/include
/usr/openwin/include /usr/openwin/include
) )
@ -64,7 +64,7 @@ LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH
/usr/X11R6/lib /usr/lib/X11 /usr/X11R6/lib /usr/lib/X11
# Other # Other
/opt/local/lib /usr/pkg/lib /usr/pkg/lib
/opt/csw/lib /opt/lib /opt/csw/lib /opt/lib
/usr/openwin/lib /usr/openwin/lib
) )