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

@@ -14,6 +14,7 @@ endif()
add_swift_host_library(swiftRemoteAST STATIC
RemoteAST.cpp
InProcessMemoryReader.cpp
${REMOTE_LIB_HEADERS}
LINK_LIBRARIES
swiftSema swiftIRGen)
${REMOTE_LIB_HEADERS})
target_link_libraries(swiftRemoteAST PRIVATE
swiftIRGen
swiftSema)