From bca69aaf89c0d6fd77a4c96c467c047ee99aa668 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Fri, 10 Apr 2020 14:21:11 -0700 Subject: [PATCH] Fix VS Intellisense for projects which depend on LLVM found via CMake. --- mesonbuild/dependencies/dev.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py index b6ac3318b..67d7e65fa 100644 --- a/mesonbuild/dependencies/dev.py +++ b/mesonbuild/dependencies/dev.py @@ -406,6 +406,9 @@ class LLVMDependencyCMake(CMakeDependency): # Extract extra include directories and definitions inc_dirs = self.traceparser.get_cmake_var('PACKAGE_INCLUDE_DIRS') defs = self.traceparser.get_cmake_var('PACKAGE_DEFINITIONS') + # LLVM explicitly uses space-separated variables rather than semicolon lists + if len(defs) == 1: + defs = defs[0].split(' ') temp = ['-I' + x for x in inc_dirs] + defs self.compile_args += [x for x in temp if x not in self.compile_args] if not self._add_sub_dependency(threads_factory(env, self.for_machine, {})):