File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
tools/SourceKit/tools/sourcekitd-repl Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ else()
59
59
LibEdit_LIBRARIES
60
60
VERSION_VAR
61
61
LibEdit_VERSION_STRING )
62
- mark_as_advanced (LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES )
63
62
endif ()
64
63
64
+ if (LibEdit_FOUND AND NOT TARGET libedit )
65
+ add_library (libedit UNKNOWN IMPORTED )
66
+ set_target_properties (libedit PROPERTIES
67
+ IMPORTED_LOCATION ${LibEdit_LIBRARIES}
68
+ INTERFACE_INCLUDE_DIRECTORIES ${LibEdit_INCLUDE_DIRS} )
69
+ endif ()
70
+ mark_as_advanced (LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES )
Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ if(LibEdit_FOUND AND LibEdit_HAS_UNICODE)
16
16
target_compile_definitions (swiftImmediate PRIVATE
17
17
HAVE_LIBEDIT )
18
18
target_link_libraries (swiftImmediate PRIVATE
19
- ${LibEdit_LIBRARIES} )
19
+ libedit )
20
20
endif ()
Original file line number Diff line number Diff line change @@ -12,10 +12,8 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
12
12
dispatch
13
13
BlocksRuntime )
14
14
endif ()
15
- target_include_directories (sourcekitd-repl PRIVATE
16
- ${LibEdit_INCLUDE_DIRS} )
17
15
target_link_libraries (sourcekitd-repl PRIVATE
18
- ${LibEdit_LIBRARIES} )
16
+ libedit )
19
17
20
18
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
21
19
set_target_properties (sourcekitd-repl
You can’t perform that action at this time.
0 commit comments