Skip to content

Commit

Permalink
Thrift is a dependency of LspService and LspHandler, as required by t…
Browse files Browse the repository at this point in the history
…he included models. Therefore Thrift must be added to include and library path of the LSP service library and the webserver binary.
  • Loading branch information
mcserep committed Jun 18, 2019
1 parent 0a0f585 commit 9a47571
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions service/lsp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ include_directories(
${CMAKE_BINARY_DIR}/model/include
${CMAKE_BINARY_DIR}/plugins/cpp/model/include)

include_directories(SYSTEM)
include_directories(SYSTEM
${THRIFT_LIBTHRIFT_INCLUDE_DIRS})

add_library(lspservice SHARED
src/lspservice.cpp
src/lsp_types.cpp
src/plugin.cpp)

target_link_libraries(lspservice
util)
util
${THRIFT_LIBTHRIFT_LIBRARIES})

add_dependencies(lspservice projectthrift)
add_dependencies(lspservice languagethrift)
Expand Down
4 changes: 4 additions & 0 deletions webserver/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
include_directories(SYSTEM
${THRIFT_LIBTHRIFT_INCLUDE_DIRS})

add_executable(CodeCompass_webserver
src/webserver.cpp
src/mainrequesthandler.cpp
Expand Down Expand Up @@ -36,6 +39,7 @@ target_link_libraries(CodeCompass_webserver
mongoose
${Boost_LINK_LIBRARIES}
${ODB_LIBRARIES}
${THRIFT_LIBTHRIFT_LIBRARIES}
pthread
dl)

Expand Down

0 comments on commit 9a47571

Please sign in to comment.