diff options
author | Tom Rondeau <tom@trondeau.com> | 2016-02-10 12:14:37 -0500 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2016-02-10 12:14:37 -0500 |
commit | 0369e2fde4ae2de7cbc1b426c3eb9e6fcb2c5a32 (patch) | |
tree | 6e6b379a7792951a00e6eb44debc2d8888654190 /cmake | |
parent | d01c4cc596ed06b901fef0af927da349135c82f8 (diff) |
cmake: Fixed bug in FindThrift.cmake
pkg-config sets the variable INCLUDE_DIRS, not INCLUDE_DIR. Cmake
wouldn't pick up the thrift package if installed in another prefix
without this.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/FindThrift.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/Modules/FindThrift.cmake b/cmake/Modules/FindThrift.cmake index cef8a471ea..4702f90d78 100644 --- a/cmake/Modules/FindThrift.cmake +++ b/cmake/Modules/FindThrift.cmake @@ -13,10 +13,9 @@ endif(PC_THRIFT_FOUND AND PC_THRIFT_VERSION VERSION_LESS ${THRIFT_REQ_VERSION}) # Else, look for it ourselves - FIND_PATH(THRIFT_INCLUDE_DIRS NAMES thrift/Thrift.h - HINTS ${PC_THRIFT_INCLUDE_DIR} + HINTS ${PC_THRIFT_INCLUDE_DIRS} ${CMAKE_INSTALL_PREFIX}/include PATHS /usr/local/include |