commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 11/12: cmake: cmake should get native thrif


From: git
Subject: [Commit-gnuradio] [gnuradio] 11/12: cmake: cmake should get native thrift binary when cross compiling.
Date: Fri, 19 Feb 2016 13:58:40 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch android
in repository gnuradio.

commit 166b54cfd19ee0539b249bf9cba65eb2ae437e7b
Author: Tom Rondeau <address@hidden>
Date:   Thu Jan 14 16:09:25 2016 -0500

    cmake: cmake should get native thrift binary when cross compiling.
---
 cmake/Modules/FindThrift.cmake | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cmake/Modules/FindThrift.cmake b/cmake/Modules/FindThrift.cmake
index 4702f90..5963ce9 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)
+  set(THRIFT_BIN "/usr/bin/thrift")
+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(



reply via email to

[Prev in Thread] Current Thread [Next in Thread]