commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 01/02: cmake: cmake should get native thrif


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/02: cmake: cmake should get native thrift binary when cross compiling.
Date: Sun, 21 Feb 2016 16:25:30 +0000 (UTC)

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

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 9e2eb46fe625f4ac04cc3e85c791b5e9dd903689
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..e5a8df1 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(



reply via email to

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