[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2656-g2d3926d

Ben Boeckel ben.boeckel at kitware.com
Tue Mar 26 13:23:32 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  2d3926d42e795b91d6ecec445fccfb42aaa88e3a (commit)
       via  2a4e0206a626bba7733e7c35db54a65c57216e0f (commit)
      from  e78daa371c2d6ffd0fbc777c455c9fb3b9622b51 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2d3926d42e795b91d6ecec445fccfb42aaa88e3a
commit 2d3926d42e795b91d6ecec445fccfb42aaa88e3a
Merge: e78daa3 2a4e020
Author:     Ben Boeckel <ben.boeckel at kitware.com>
AuthorDate: Tue Mar 26 13:23:31 2013 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Mar 26 13:23:31 2013 -0400

    Merge topic 'dev/add-isystem-for-clang' into next
    
    2a4e020 Add isystem flag support if using clang


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2a4e0206a626bba7733e7c35db54a65c57216e0f
commit 2a4e0206a626bba7733e7c35db54a65c57216e0f
Author:     Ben Boeckel <ben.boeckel at kitware.com>
AuthorDate: Tue Mar 26 13:21:37 2013 -0400
Commit:     Ben Boeckel <ben.boeckel at kitware.com>
CommitDate: Tue Mar 26 13:21:37 2013 -0400

    Add isystem flag support if using clang
    
    In GNU.cmake, -isystem is not used if APPLE is set. However, clang has
    pretty much always supported -isystem, so it should always set it. In
    the future, GNU.cmake should do a version check to see if -isystem is
    supported.

diff --git a/Modules/Compiler/Clang.cmake b/Modules/Compiler/Clang.cmake
index 75a971d..c6cd8f8 100644
--- a/Modules/Compiler/Clang.cmake
+++ b/Modules/Compiler/Clang.cmake
@@ -23,4 +23,5 @@ include(Compiler/GNU)
 macro(__compiler_clang lang)
   __compiler_gnu(${lang})
   set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIE")
+  set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
 endmacro()

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

Summary of changes:
 Modules/Compiler/Clang.cmake |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list