summaryrefslogtreecommitdiff
path: root/Modules/CMakeDetermineCompilerABI.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-22 15:39:03 -0400
committerBrad King <brad.king@kitware.com>2019-03-25 11:48:17 -0400
commit588fa1bb9eed6e838f58d4f1fb1d01d83ecfd820 (patch)
tree3b79f74c7aed659aa4c49b0e3483031f9d391642 /Modules/CMakeDetermineCompilerABI.cmake
parentbf02d625325535f485512eba307cff54c08bb257 (diff)
downloadcmake-588fa1bb9eed6e838f58d4f1fb1d01d83ecfd820.tar.gz
Restore support for include_directories() in toolchain files
Any `include_directories()` calls in toolchain files are used during our ABI detection step even though it does not include any system headers. Since commit 5990ecb741 (Compute implicit include directories from compiler output, 2018-12-07, v3.14.0-rc1~108^2), that check is also used to detect implicit include directories. Any `include_directories()` in a toolchain file are detected as implicit and later excluded from explicit specification on compiler command lines, thus breaking the purpose of the calls in the first place. Fix the implicit include directory detection step to avoid using paths from `include_directories()` calls in the toolchain file. Fixes: #19079
Diffstat (limited to 'Modules/CMakeDetermineCompilerABI.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerABI.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerABI.cmake b/Modules/CMakeDetermineCompilerABI.cmake
index e0d2449223..06f3ba22de 100644
--- a/Modules/CMakeDetermineCompilerABI.cmake
+++ b/Modules/CMakeDetermineCompilerABI.cmake
@@ -51,6 +51,7 @@ function(CMAKE_DETERMINE_COMPILER_ABI lang src)
OUTPUT_VARIABLE OUTPUT
COPY_FILE "${BIN}"
COPY_FILE_ERROR _copy_error
+ __CMAKE_INTERNAL ABI
)
# Restore original LC_ALL, LC_MESSAGES, and LANG