[CMake] Use only keyword-version of target_link_library. NFC.
commit261335b4cd85019d765c73b0bef62e4c9d955c03
authorMichael Kruse <llvm@meinersbur.de>
Fri, 12 Jan 2018 16:09:18 +0000 (12 16:09 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 12 Jan 2018 16:09:18 +0000 (12 16:09 +0000)
treee004b6fc848f99ef832fc84d0381ef130107e4d4
parent522d0b58b96e4137a0f00010d992f1f43b6eb6a9
[CMake] Use only keyword-version of target_link_library. NFC.

CMake insists that for each target, one uses only the non-keyword
version of target_link_library

    target_link_library(mytarget lib)

or the one with PUBLIC/PRIVATE/INTERFACE keyword:

    target_link_library(mytarget PUBLIC lib)

Otherwise, CMake fails with the error message:

  The keyword signature for target_link_libraries has already been used with
  the target "mytarget".  All uses of target_link_libraries with a target
  must be either all-keyword or all-plain.

Change all occurances of target_link_library to the newer keyworded
version to avoid such errors. Some already have been changed in r319840,
but might not be sufficient for all build configurations to build
the doxygen manual.

Reported-by: Tanya Lattner <tanyalattner@llvm.org>
git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@322376 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
cmake/polly_macros.cmake
lib/CMakeLists.txt
lib/External/CMakeLists.txt