diff options
author | Brad King <brad.king@kitware.com> | 2019-02-22 15:31:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-02-25 13:24:28 (GMT) |
commit | f709089d845bd70bd889a691b98cd60427e161d4 (patch) | |
tree | f23943c1426f2f15afb9bc491f3408b4dc150a4d /Modules/CMakeParseImplicitIncludeInfo.cmake | |
parent | 5c41386357977d931f73e3bb824080af795b3cd5 (diff) | |
download | CMake-f709089d845bd70bd889a691b98cd60427e161d4.zip CMake-f709089d845bd70bd889a691b98cd60427e161d4.tar.gz CMake-f709089d845bd70bd889a691b98cd60427e161d4.tar.bz2 |
XLClang: Extract compiler implicit include directories
Diffstat (limited to 'Modules/CMakeParseImplicitIncludeInfo.cmake')
-rw-r--r-- | Modules/CMakeParseImplicitIncludeInfo.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/CMakeParseImplicitIncludeInfo.cmake b/Modules/CMakeParseImplicitIncludeInfo.cmake index 21e24b7..6d7732d 100644 --- a/Modules/CMakeParseImplicitIncludeInfo.cmake +++ b/Modules/CMakeParseImplicitIncludeInfo.cmake @@ -92,13 +92,15 @@ function(cmake_parse_implicit_include_line line lang id_var log_var state_var) endif() # XL compiler - if("${CMAKE_${lang}_COMPILER_ID}" STREQUAL "XL" AND "${line}" MATCHES "^/" + if(("${CMAKE_${lang}_COMPILER_ID}" STREQUAL "XL" + OR "${CMAKE_${lang}_COMPILER_ID}" STREQUAL "XLClang") + AND "${line}" MATCHES "^/" AND ( ("${lang}" STREQUAL "Fortran" AND "${line}" MATCHES "/xl[fF]entry " AND "${line}" MATCHES "OSVAR\\([^ ]+\\)") OR ( ("${lang}" STREQUAL "C" OR "${lang}" STREQUAL "CXX") AND - "${line}" MATCHES "/xl[cC]entry " AND + "${line}" MATCHES "/xl[cC]2?entry " AND "${line}" MATCHES " -qosvar=") ) ) # -qnostdinc cancels other stdinc flags, even if present |