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
+  )
_______________________________________________
cmake-developers mailing list
[email protected]
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to