From 1aba0359d98c33a3f424707bdae50dd7c9c18a88 Mon Sep 17 00:00:00 2001 From: Duzy Chan Date: Fri, 14 Jun 2019 18:55:12 +0800 Subject: [PATCH] Fix ClangOpenCLBuiltinsImpl target not found set_source_files_properties OBJECT_DEPENDS for SemaLookup.cpp does not work as it's actually looking for a file target rather then a custom (clang_tablegen) target. The add_dependencies is going to fix the dependency error. --- lib/Sema/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/CMakeLists.txt b/lib/Sema/CMakeLists.txt index 60560ef0f622..e80f9eaff2ed 100644 --- a/lib/Sema/CMakeLists.txt +++ b/lib/Sema/CMakeLists.txt @@ -72,4 +72,4 @@ clang_tablegen(OpenCLBuiltins.inc -gen-clang-opencl-builtins TARGET ClangOpenCLBuiltinsImpl ) -set_source_files_properties(SemaLookup.cpp OBJECT_DEPENDS ClangOpenCLBuiltinsImpl) +add_dependencies(clangSema ClangOpenCLBuiltinsImpl)