[110452] trunk/dports/devel/cmake/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Fri Aug 30 23:57:15 PDT 2013


Revision: 110452
          https://trac.macports.org/changeset/110452
Author:   jeremyhu at 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:
--------------
    trunk/dports/devel/cmake/Portfile

Modified: trunk/dports/devel/cmake/Portfile
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130830/5da36af5/attachment.html>


More information about the macports-changes mailing list