mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user