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