Skip to content

Commit 04affa2

Browse files
committed
build: use the new libedit imported library
Use the imported library to track header search path and library search paths and dependencies rather than replicating that knowledge.
1 parent 9d9a5ce commit 04affa2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/Immediate/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ if(LibEdit_FOUND AND LibEdit_HAS_UNICODE)
1616
target_compile_definitions(swiftImmediate PRIVATE
1717
HAVE_LIBEDIT)
1818
target_link_libraries(swiftImmediate PRIVATE
19-
${LibEdit_LIBRARIES})
19+
libedit)
2020
endif()

tools/SourceKit/tools/sourcekitd-repl/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
1212
dispatch
1313
BlocksRuntime)
1414
endif()
15-
target_include_directories(sourcekitd-repl PRIVATE
16-
${LibEdit_INCLUDE_DIRS})
1715
target_link_libraries(sourcekitd-repl PRIVATE
18-
${LibEdit_LIBRARIES})
16+
libedit)
1917

2018
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
2119
set_target_properties(sourcekitd-repl

0 commit comments

Comments
 (0)