Revision
110452
Author
jeremyhu@macports.org
Date
2013-08-30 23:57:15 -0700 (Fri, 30 Aug 2013)

Log Message

cmake: Don't use libc++ on Lion, even if we were told to.

Modified Paths

Diff

Modified: trunk/dports/devel/cmake/Portfile (110451 => 110452)


--- trunk/dports/devel/cmake/Portfile	2013-08-31 06:52:46 UTC (rev 110451)
+++ trunk/dports/devel/cmake/Portfile	2013-08-31 06:57:15 UTC (rev 110452)
@@ -48,6 +48,16 @@
     set universal_archs_supported ${supported_archs}
 }
 
+platform darwin 11 {
+    if {[string match *-stdlib=libc++* ${configure.cxxflags}]} {
+        # TODO: Figure out why this is failing.
+        #       Since nothing links against cmake and cmake is just using the
+        #       STL, we're safe to use libstdc++ even if the user requested libc++
+        configure.cxxflags-delete "-stdlib=libc++"
+        configure.cxxflags-append "-stdlib=libstdc++"
+    }
+}
+
 patchfiles	patch-CMakeFindFrameworks.cmake.diff \
 			patch-Modules-FindQt4.cmake.diff \
 			patch-Utilities-cmcurl-strequal.h.diff