[KillTheDoctor/CMake] Add missing PRIVATE keyword

Dani Muñoz via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 5 17:48:32 PDT 2020


 While trying to compile llvm/clang on Windows, the following CMake error
occurred. The reason is a missing PUBLIC/PRIVATE/INTERFACE keyword in
target_link_libraries. A fix for it is attached.

CMake Error at utils/KillTheDoctor/CMakeLists.txt:5 (target_link_libraries):
  The keyword signature for target_link_libraries has already been used with
  the target "KillTheDoctor".  All uses of target_link_libraries with a
  target must be either all-keyword or all-plain.

  The uses of the keyword signature are here:

   * cmake/modules/AddLLVM.cmake:771 (target_link_libraries)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200906/cc1db24c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mypatch.patch
Type: application/octet-stream
Size: 677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200906/cc1db24c/attachment.obj>


More information about the llvm-commits mailing list