[CMake] Use only keyword-version of target_link_library. NFC.
authorMichael Kruse <llvm@meinersbur.de>
Fri, 12 Jan 2018 16:09:18 +0000 (16:09 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 12 Jan 2018 16:09:18 +0000 (16:09 +0000)
commit21de8adc3646147c2e7372d9d323fe67be5f4669
tree912bdc0b2416673407cc387c906fc18e4e2ff9ad
parente0d2f7678d3095eecaecf0de03389ea8ad5233ee
[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>
llvm-svn: 322376
polly/CMakeLists.txt
polly/cmake/polly_macros.cmake
polly/lib/CMakeLists.txt
polly/lib/External/CMakeLists.txt