diff --git a/lib/ASTGen/CMakeLists.txt b/lib/ASTGen/CMakeLists.txt index d5c227369439c..9f87ef1aa5a0d 100644 --- a/lib/ASTGen/CMakeLists.txt +++ b/lib/ASTGen/CMakeLists.txt @@ -1,5 +1,8 @@ set(ASTGen_Swift_dependencies) +# Prevents leftovers from other branches confuses the module search. +set(CMAKE_INCLUDE_CURRENT_DIR NO) + # If requested, build the regular expression parser into the compiler itself. if(SWIFT_BUILD_REGEX_PARSER_IN_COMPILER) file(GLOB_RECURSE _COMPILER_REGEX_PARSER_SOURCES