From 86595b300297c9572eea5710837f5bb12251c62f Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 6 Jul 2021 16:11:42 +0200 Subject: cmLocalGenerator: Clarify check for membership in multiple sets --- Source/cmLocalGenerator.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 5fbff6c..cfda21f 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1254,9 +1254,9 @@ std::vector> cmLocalGenerator::GetIncludeDirectoriesImplicit( 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, real_dir) && - !cm::contains(implicitExclude, dir)) + // Do not exclude directories that are not in any excluded set. + !(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 // user-specified directories that can be re-ordered or converted to -- cgit v0.12