From 77e9ff5587e64b23d2df7738090426cb80b08af0 Mon Sep 17 00:00:00 2001 From: Duzy Chan Date: Fri, 14 Jun 2019 18:59:31 +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. See also https://github.com/llvm-mirror/clang/pull/63 https://github.com/llvm-mirror/clang/pull/63/files --- clang/lib/Sema/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/CMakeLists.txt b/clang/lib/Sema/CMakeLists.txt index 60560ef0f6227..e80f9eaff2ed6 100644 --- a/clang/lib/Sema/CMakeLists.txt +++ b/clang/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)