Skip to content

Commit 77e9ff5

Browse files
authored
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 llvm-mirror/clang#63 https://github.com/llvm-mirror/clang/pull/63/files
1 parent cfa1a62 commit 77e9ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ clang_tablegen(OpenCLBuiltins.inc -gen-clang-opencl-builtins
7272
TARGET ClangOpenCLBuiltinsImpl
7373
)
7474

75-
set_source_files_properties(SemaLookup.cpp OBJECT_DEPENDS ClangOpenCLBuiltinsImpl)
75+
add_dependencies(clangSema ClangOpenCLBuiltinsImpl)

0 commit comments

Comments
 (0)