summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2020-02-05 22:30:01 +0100
committerJens Geyer <jensg@apache.org>2020-02-06 22:59:31 +0100
commitbaddaa8612fe70070208d30b91d820e99fb2a716 (patch)
treee2e2430c74d27419ac2111483f45b946785c9c45 /build
parentb576ae91f0b777aab0fb0df913067b5f1ca66345 (diff)
downloadthrift-baddaa8612fe70070208d30b91d820e99fb2a716.tar.gz
THRIFT-5086 CMake target thrift::thrift has no INTERFACE_INCLUDE_DIRECTORIES property
Client: cpp Patch: SmartNet Club This closes #2003
Diffstat (limited to 'build')
-rw-r--r--build/cmake/ThriftMacros.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/cmake/ThriftMacros.cmake b/build/cmake/ThriftMacros.cmake
index d068b2ae6..038651eea 100644
--- a/build/cmake/ThriftMacros.cmake
+++ b/build/cmake/ThriftMacros.cmake
@@ -25,6 +25,7 @@ endmacro(ADD_PKGCONFIG_THRIFT)
macro(ADD_LIBRARY_THRIFT name)
add_library(${name} ${ARGN})
+ target_include_directories(${name} INTERFACE $<INSTALL_INTERFACE:include>)
set_target_properties(${name} PROPERTIES
OUTPUT_NAME ${name}${THRIFT_RUNTIME_POSTFIX} # windows link variants (/MT, /MD, /MTd, /MDd) get different names
VERSION ${thrift_VERSION} )