summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-13 13:45:28 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-01-13 13:45:38 (GMT)
commitff7e813fc1f1157b749bc7c470706d72411f5a53 (patch)
tree80a26d52c732fd058975f8fb17d3e20673e15855 /Modules
parentc546888b7d1511b7283af5811700237cc3da9a2f (diff)
parent607bccb4efe15d7c33618a2c6324d2dbeccb5119 (diff)
downloadCMake-ff7e813fc1f1157b749bc7c470706d72411f5a53.zip
CMake-ff7e813fc1f1157b749bc7c470706d72411f5a53.tar.gz
CMake-ff7e813fc1f1157b749bc7c470706d72411f5a53.tar.bz2
Merge topic 'implicit-includes'
607bccb4ef Restore implicit include directory extraction for adaptive relative paths Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8067
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeParseImplicitIncludeInfo.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/CMakeParseImplicitIncludeInfo.cmake b/Modules/CMakeParseImplicitIncludeInfo.cmake
index 5c0eda2..1ebd887 100644
--- a/Modules/CMakeParseImplicitIncludeInfo.cmake
+++ b/Modules/CMakeParseImplicitIncludeInfo.cmake
@@ -233,8 +233,9 @@ function(cmake_parse_implicit_include_info text lang dir_var log_var state_var)
get_filename_component(dir "${d}" ABSOLUTE)
list(APPEND implicit_dirs "${dir}")
string(APPEND log " collapse include dir [${d}] ==> [${dir}]\n")
- elseif("${d}" MATCHES [[^\.\.[\/]\.\.[\/](.*)$]])
- # This relative path is deep enough to get out of the CMakeFiles/CMakeTmp
+ elseif("${d}" MATCHES [[^\.\.[\/]\.\.[\/]\.\.[\/](.*)$]])
+ # This relative path is deep enough to get out of the
+ # CMakeFiles/CMakeScratch/<unique>
# directory where the ABI check is done. Assume that the compiler has
# computed this path adaptively based on the current working directory
# such that the effective result is absolute.