Skip to content

Commit

Permalink
Fix ClangOpenCLBuiltinsImpl target not found
Browse files Browse the repository at this point in the history
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
  • Loading branch information
duzy authored Jun 14, 2019
1 parent cfa1a62 commit 77e9ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Sema/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 77e9ff5

Please sign in to comment.