cmake: switch host libraries to use target_link_libraries

This is a follow up to the discussion on #22740 to switch the host
libraries to use the `target_link_libraries` rather than the
`LINK_LIBRARIES` special handling.  This allows the dependency to be
properly tracked by CMake and allows us to use the more modern syntax.
This commit is contained in:
Saleem Abdulrasool
2019-02-22 14:52:03 -08:00
parent f820c6eb23
commit 9934532e07
27 changed files with 127 additions and 123 deletions

View File

@@ -5,12 +5,10 @@ set(LLVM_EXPORTED_SYMBOL_FILE
${CMAKE_CURRENT_SOURCE_DIR}/libSwiftSyntaxParser.exports)
add_swift_host_library(libSwiftSyntaxParser SHARED
c-include-check.c
libSwiftSyntaxParser.cpp
LINK_LIBRARIES
swiftParse
)
c-include-check.c
libSwiftSyntaxParser.cpp)
target_link_libraries(libSwiftSyntaxParser PRIVATE
swiftParse)
set_target_properties(libSwiftSyntaxParser
PROPERTIES
OUTPUT_NAME ${SYNTAX_PARSER_LIB_NAME})