[cmake-developers] [Cmake-commits] CMake branch, next, updated. v2.8.2-543-g7485a2c

Brad King brad.king at kitware.com
Tue Aug 31 14:16:40 EDT 2010


On 08/26/2010 12:17 AM, Philip Lowman wrote:
>     10688: FindGTK2.cmake doesn't auto-detect macports
[snip]
> @@ -184,6 +186,8 @@ function(_GTK2_FIND_INCLUDE_DIR _var _hdr)
>              /usr/openwin/lib
>              /sw/include
>              /sw/lib
> +            /opt/local/include
> +            /opt/local/lib
>              $ENV{GTKMM_BASEPATH}/include
>              $ENV{GTKMM_BASEPATH}/lib
>              [HKEY_CURRENT_USER\\SOFTWARE\\gtkmm\\2.4;Path]/include

Rather than fixing this for one specific package, perhaps the patch
below is better?  Does it fix this module too?

Thanks,
-Brad


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
+  )



More information about the cmake-developers mailing list