commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 01/02: If cross compiling, do not test for


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/02: If cross compiling, do not test for the thrift python module.
Date: Thu, 24 Dec 2015 03:09:06 +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 013fe4a9fbbe7e3b040f7c4b8b693fc4a54910df
Author: Philip Balister <address@hidden>
Date:   Thu Dec 3 16:23:29 2015 -0500

    If cross compiling, do not test for the thrift python module.
    
    Signed-off-by: Philip Balister <address@hidden>
---
 cmake/Modules/FindThrift.cmake | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/cmake/Modules/FindThrift.cmake b/cmake/Modules/FindThrift.cmake
index f12bce0..cef8a47 100644
--- a/cmake/Modules/FindThrift.cmake
+++ b/cmake/Modules/FindThrift.cmake
@@ -59,8 +59,12 @@ endif(THRIFT_VERSION VERSION_LESS THRIFT_REQ_VERSION)
 
 
 # Check that Thrift for Python is available
-include(GrPython)
-GR_PYTHON_CHECK_MODULE("Thrift" thrift "1" PYTHON_THRIFT_FOUND)
+IF  (CMAKE_CROSSCOMPILING)
+  SET(PYTHON_THRIFT_FOUND TRUE)
+ELSE  (CMAKE_CROSSCOMPILING)
+  include(GrPython)
+  GR_PYTHON_CHECK_MODULE("Thrift" thrift "1" PYTHON_THRIFT_FOUND)
+ENDIF  (CMAKE_CROSSCOMPILING)
 
 # Set to found if we've made it this far
 if(THRIFT_INCLUDE_DIRS AND THRIFT_LIBRARIES AND PYTHON_THRIFT_FOUND)



reply via email to

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