summaryrefslogtreecommitdiffstats
path: root/polly/lib
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2018-01-12 16:09:18 +0000
committerMichael Kruse <llvm@meinersbur.de>2018-01-12 16:09:18 +0000
commit21de8adc3646147c2e7372d9d323fe67be5f4669 (patch)
tree912bdc0b2416673407cc387c906fc18e4e2ff9ad /polly/lib
parente0d2f7678d3095eecaecf0de03389ea8ad5233ee (diff)
downloadbcm5719-llvm-21de8adc3646147c2e7372d9d323fe67be5f4669.tar.gz
bcm5719-llvm-21de8adc3646147c2e7372d9d323fe67be5f4669.zip
[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
Diffstat (limited to 'polly/lib')
-rw-r--r--polly/lib/CMakeLists.txt12
-rw-r--r--polly/lib/External/CMakeLists.txt4
2 files changed, 8 insertions, 8 deletions
diff --git a/polly/lib/CMakeLists.txt b/polly/lib/CMakeLists.txt
index cba633af2dd..0e81a31295b 100644
--- a/polly/lib/CMakeLists.txt
+++ b/polly/lib/CMakeLists.txt
@@ -75,14 +75,14 @@ set_target_properties(PollyCore PROPERTIES FOLDER "Polly")
# LLVM_POLLY_LINK_INTO_TOOLS=ON, its dependencies like PollyISL are linked as
# well.
add_polly_library(Polly $<TARGET_OBJECTS:PollyCore>)
-target_link_libraries(Polly
+target_link_libraries(Polly PUBLIC
${ISL_TARGET}
${JSONCPP_LIBRARIES}
)
# Additional dependencies for Polly-ACC.
if (GPU_CODEGEN)
- target_link_libraries(Polly PollyPPCG)
+ target_link_libraries(Polly PUBLIC PollyPPCG)
endif ()
@@ -100,9 +100,9 @@ if (LLVM_LINK_LLVM_DYLIB)
# (their LLVM*.a/so and their copies in libLLVM.so)
# which results in errors when the two instances try to register the same
# command-line switches.
- target_link_libraries(Polly LLVM)
+ target_link_libraries(Polly PUBLIC LLVM)
else ()
- target_link_libraries(Polly
+ target_link_libraries(Polly PUBLIC
LLVMSupport
LLVMCore
LLVMScalarOpts
@@ -145,9 +145,9 @@ else ()
# hosts. This is not the case for bugpoint. Use LLVM_POLLY_LINK_INTO_TOOLS=ON
# instead which will automatically resolve the additional dependencies by
# Polly.
- target_link_libraries(LLVMPolly ${ISL_TARGET} ${JSONCPP_LIBRARIES})
+ target_link_libraries(LLVMPolly PUBLIC ${ISL_TARGET} ${JSONCPP_LIBRARIES})
if (GPU_CODEGEN)
- target_link_libraries(LLVMPolly PollyPPCG)
+ target_link_libraries(LLVMPolly PUBLIC PollyPPCG)
endif ()
set_target_properties(LLVMPolly
diff --git a/polly/lib/External/CMakeLists.txt b/polly/lib/External/CMakeLists.txt
index b3c6e73a7a0..8ab07d813cb 100644
--- a/polly/lib/External/CMakeLists.txt
+++ b/polly/lib/External/CMakeLists.txt
@@ -281,7 +281,7 @@ if (POLLY_BUNDLED_ISL)
)
set_target_properties(polly-isl-test PROPERTIES FOLDER "Polly")
- target_link_libraries(polly-isl-test
+ target_link_libraries(polly-isl-test PRIVATE
PollyISL
)
@@ -342,7 +342,7 @@ add_polly_library(PollyPPCG
${PPCG_FILES}
)
-target_link_libraries(PollyPPCG ${ISL_TARGET})
+target_link_libraries(PollyPPCG PUBLIC ${ISL_TARGET})
# Disable warnings for upstream projects.
if (MSVC)
OpenPOWER on IntegriCloud