diff options
author | Brad King <brad.king@kitware.com> | 2019-07-09 17:13:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-09 17:13:26 (GMT) |
commit | 0a7b61269c48b43cbc6677c0871ce3d519d460d6 (patch) | |
tree | 7f412b3034b6ddd53a2bfeed93fec723dd48539e /Modules | |
parent | c56201bdac81d3d74efa9437a7ed2cef4285de6d (diff) | |
parent | 98e371f13e0a8dc35367f98b027f62802b3ed280 (diff) | |
download | CMake-0a7b61269c48b43cbc6677c0871ce3d519d460d6.zip CMake-0a7b61269c48b43cbc6677c0871ce3d519d460d6.tar.gz CMake-0a7b61269c48b43cbc6677c0871ce3d519d460d6.tar.bz2 |
Merge branch 'backport-implicit-includes-cray-hlist'
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeParseImplicitIncludeInfo.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeParseImplicitIncludeInfo.cmake b/Modules/CMakeParseImplicitIncludeInfo.cmake index 176b3ff..91d03cd 100644 --- a/Modules/CMakeParseImplicitIncludeInfo.cmake +++ b/Modules/CMakeParseImplicitIncludeInfo.cmake @@ -15,9 +15,9 @@ function(cmake_parse_implicit_include_line line lang id_var log_var state_var) if("${CMAKE_${lang}_COMPILER_ID}" STREQUAL "Cray" AND "${line}" MATCHES "^/" AND "${line}" MATCHES "/ccfe |/ftnfe " AND "${line}" MATCHES " -isystem| -I") - string(REGEX MATCHALL " (-I ?|-isystem )([^ ]*)" incs "${line}") + string(REGEX MATCHALL " (-I ?|-isystem )(\"[^\"]+\"|[^ \"]+)" incs "${line}") foreach(inc IN LISTS incs) - string(REGEX REPLACE " (-I ?|-isystem )([^ ]*)" "\\2" idir "${inc}") + string(REGEX REPLACE " (-I ?|-isystem )(\"[^\"]+\"|[^ \"]+)" "\\2" idir "${inc}") list(APPEND rv "${idir}") endforeach() if(rv) |