diff options
author | Alexander Grund <Flamefire@users.noreply.github.com> | 2021-07-06 14:11:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-07 12:04:15 (GMT) |
commit | 3fd56472c6b6a78ba47cea0905a1694a7e6cec38 (patch) | |
tree | dbee9f0aed952e72d4824a6b41a87a3aa2e35e7e /Source | |
parent | 429fb28f25752352db876f634d3b317962cfeb7d (diff) | |
download | CMake-3fd56472c6b6a78ba47cea0905a1694a7e6cec38.zip CMake-3fd56472c6b6a78ba47cea0905a1694a7e6cec38.tar.gz CMake-3fd56472c6b6a78ba47cea0905a1694a7e6cec38.tar.bz2 |
cmLocalGenerator: Store realpath lookup result in a variable
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index f58f142..051b15a 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1251,10 +1251,11 @@ std::vector<BT<std::string>> cmLocalGenerator::GetIncludeDirectoriesImplicit( // Checks if this is not an excluded (implicit) include directory. auto notExcluded = [this, &implicitSet, &implicitExclude, - isCorCxx](std::string const& dir) { + isCorCxx](std::string const& dir) -> bool { + std::string const& real_dir = this->GlobalGenerator->GetRealPath(dir); return ( // Do not exclude directories that are not in an excluded set. - ((!cm::contains(implicitSet, this->GlobalGenerator->GetRealPath(dir))) && + ((!cm::contains(implicitSet, real_dir)) && (!cm::contains(implicitExclude, dir))) // Do not exclude entries of the CPATH environment variable even though // they are implicitly searched by the compiler. They are meant to be |