diff --git a/CMakeLists.txt b/CMakeLists.txt index e64d49017..4a37c0117 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.16.1) list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) project(SourceKit-LSP - LANGUAGES C Swift) + LANGUAGES C CXX Swift) set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift) diff --git a/Sources/sourcekit-lsp/CMakeLists.txt b/Sources/sourcekit-lsp/CMakeLists.txt index e734e738a..cbd8ad3d4 100644 --- a/Sources/sourcekit-lsp/CMakeLists.txt +++ b/Sources/sourcekit-lsp/CMakeLists.txt @@ -18,5 +18,8 @@ target_compile_options(sourcekit-lsp PRIVATE target_link_libraries(sourcekit-lsp PRIVATE $<$>:FoundationXML>) +set_target_properties(sourcekit-lsp PROPERTIES + INSTALL_RPATH "$<$:@executable_path/../lib;@executable_path/../lib/swift/macosx;@executable_path/../lib/swift/host;@executable_path/../lib/swift/pm/llbuild>") + install(TARGETS sourcekit-lsp DESTINATION bin)