Commit fd2f5d20 authored by Wez Furlong's avatar Wez Furlong Committed by Facebook Github Bot

ThriftCppLibrary.cmake: fixup deps

Summary:
this adds the include and library dirs for generated thrift targets;
these are important when those dependencies are not installed into a default
prefix.

Reviewed By: strager

Differential Revision: D14683957

fbshipit-source-id: ed47ffac5c8732810afe77e6947584b7a2f05155
parent 430228fc
...@@ -107,11 +107,14 @@ function(add_thrift_cpp2_library LIB_NAME THRIFT_FILE) ...@@ -107,11 +107,14 @@ function(add_thrift_cpp2_library LIB_NAME THRIFT_FILE)
PUBLIC PUBLIC
${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${FOLLY_INCLUDE_DIR}
${FBTHRIFT_INCLUDE_DIR}
) )
target_link_libraries( target_link_libraries(
${LIB_NAME} ${LIB_NAME}
PUBLIC PUBLIC
${DEPENDS} ${DEPENDS}
FBThrift::thriftcpp2 FBThrift::thriftcpp2
Folly::folly
) )
endfunction() endfunction()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment