mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use the `FindLibEdit.cmake` module from LLDB to properly control where the libedit libraries are searched for and linked from as well as where the headers come from. This uses the standard mechanisms which allows users to control where libedit is pulled from (which is important for cross-compilation).
18 lines
385 B
CMake
18 lines
385 B
CMake
add_subdirectory(Runtime)
|
|
|
|
if(SWIFT_BUILD_REMOTE_MIRROR)
|
|
add_subdirectory(SwiftRemoteMirror)
|
|
endif()
|
|
|
|
if(SWIFT_INCLUDE_TOOLS)
|
|
if(libedit_FOUND)
|
|
set(HAVE_UNICODE_LIBEDIT TRUE)
|
|
endif()
|
|
configure_file(Config.h.in ${CMAKE_CURRENT_BINARY_DIR}/Config.h
|
|
ESCAPE_QUOTES @ONLY)
|
|
add_subdirectory(Option)
|
|
add_subdirectory(Parse)
|
|
add_subdirectory(Syntax)
|
|
endif()
|
|
|