[asterisk-scf-commits] asterisk-scf/release/cmake.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed May 4 15:36:40 CDT 2011


branch "master" has been updated
       via  71502cdc65df424bcc5137844be33189fb7ef285 (commit)
      from  fbeb05989f3b1fe4ef06be4cb587c87b6d00a947 (commit)

Summary of changes:
 AsteriskSCF.cmake |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 71502cdc65df424bcc5137844be33189fb7ef285
Author: David M. Lee <dlee at digium.com>
Date:   Tue May 3 10:12:16 2011 -0500

    Fix -isystem flag for Mac OS X

diff --git a/AsteriskSCF.cmake b/AsteriskSCF.cmake
index 52a5430..12bfc44 100644
--- a/AsteriskSCF.cmake
+++ b/AsteriskSCF.cmake
@@ -49,6 +49,12 @@
 set(MIN_BOOST_VERSION 1.40)
 set(TEST_TIMEOUT_SEC 60)
 
+# CMake mistakenly thinks that GCC on OS X doesn't support -isystem.
+# See http://public.kitware.com/Bug/view.php?id=10837
+if(APPLE)
+    set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ")
+endif()
+
 if(CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)
     message(FATAL_ERROR "This project must not be built in the source directory")
 endif()

-----------------------------------------------------------------------


-- 
asterisk-scf/release/cmake.git



More information about the asterisk-scf-commits mailing list