summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-02-21 08:23:35 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2016-02-21 08:23:35 -0800
commit8a12db0014b28deb3cccb28f42c7f58bfa6b00f0 (patch)
tree7f47640da16311d88e61e5c8a1ff0e55f8c953b8 /cmake
parent55112c5e1c41b049499df75ce829606d90e54d83 (diff)
parent388d5007da202a24a422dc2286af59a1e0859cdf (diff)
Merge branch 'next' into next-qt5
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindThrift.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/Modules/FindThrift.cmake b/cmake/Modules/FindThrift.cmake
index 4702f90d78..e5a8df1304 100644
--- a/cmake/Modules/FindThrift.cmake
+++ b/cmake/Modules/FindThrift.cmake
@@ -34,7 +34,11 @@ FIND_LIBRARY(THRIFT_LIBRARIES
)
# Get the thrift binary to build our files during cmake
-FIND_PROGRAM(THRIFT_BIN thrift)
+if (CMAKE_CROSSCOMPILING)
+ FIND_PROGRAM(THRIFT_BIN thrift NO_CMAKE_FIND_ROOT_PATH)
+else (CMAKE_CROSSCOMPILING)
+ FIND_PROGRAM(THRIFT_BIN thrift)
+endif(CMAKE_CROSSCOMPILING)
# Use binary to get version string and test against THRIFT_REQ_VERSION
EXECUTE_PROCESS(