diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-08-31 20:33:37 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2016-08-09 18:30:07 (GMT) |
commit | 93ac2a78d5e0dbb6607105cc8d2a3f19ebdd8583 (patch) | |
tree | 0534a5c5a6241ca5dc5f75338ab3d1fc3028cd7d /Modules/CMakeSwiftInformation.cmake | |
parent | 4689d16e8aa90e57a8456357251b6575131529d7 (diff) | |
download | CMake-93ac2a78d5e0dbb6607105cc8d2a3f19ebdd8583.zip CMake-93ac2a78d5e0dbb6607105cc8d2a3f19ebdd8583.tar.gz CMake-93ac2a78d5e0dbb6607105cc8d2a3f19ebdd8583.tar.bz2 |
Xcode: Obey SYSTEM keyword for includes (#15687)
CMake used to put all header search paths into HEADER_SEARCH_PATHS
attribute. Unfortunately this attribute does not support to declare
a search path as a system include.
As a hack one could add a -isystem /path to the cflags but then include
ordering is not deterministic. A better approach was chosen with this
patch by not filling HEADER_SEARCH_PATHS at all and to populate
the C, C++, and Fortran flags directly. The include paths used by
Xcode should be now identical to the ones used by Unix Makefiles and
Ninja generator.
Diffstat (limited to 'Modules/CMakeSwiftInformation.cmake')
-rw-r--r-- | Modules/CMakeSwiftInformation.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeSwiftInformation.cmake b/Modules/CMakeSwiftInformation.cmake index 61ad928..85d3143 100644 --- a/Modules/CMakeSwiftInformation.cmake +++ b/Modules/CMakeSwiftInformation.cmake @@ -13,6 +13,7 @@ # License text for the above reference.) set(CMAKE_Swift_OUTPUT_EXTENSION .o) +set(CMAKE_INCLUDE_FLAG_Swift "-I") # Load compiler-specific information. if(CMAKE_Swift_COMPILER_ID) |