summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorJosh Blum2011-08-13 09:23:55 -0700
committerJosh Blum2011-09-11 23:39:44 -0700
commite12553e7202b2c8a636c99ad3bf53ca288aba17f (patch)
treea36ef60fe7a291e2f55f27f6d160887fe0a454d3 /grc
parentefaa238cb8b27e079b254150f1cfd9c163b509fd (diff)
downloadgnuradio-e12553e7202b2c8a636c99ad3bf53ca288aba17f.tar.gz
gnuradio-e12553e7202b2c8a636c99ad3bf53ca288aba17f.tar.bz2
gnuradio-e12553e7202b2c8a636c99ad3bf53ca288aba17f.zip
grc: only perform python checks when not building cross
Diffstat (limited to 'grc')
-rw-r--r--grc/CMakeLists.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/grc/CMakeLists.txt b/grc/CMakeLists.txt
index ee422a4da..eec35d27c 100644
--- a/grc/CMakeLists.txt
+++ b/grc/CMakeLists.txt
@@ -32,14 +32,20 @@ GR_PYTHON_CHECK_MODULE("numpy" numpy True
# Register component
########################################################################
INCLUDE(GrComponent)
+IF(NOT CMAKE_CROSSCOMPILING)
+ SET(grc_python_deps
+ CHEETAH_FOUND
+ LXML_FOUND
+ PYGTK_FOUND
+ NUMPY_FOUND
+ )
+ENDIF(NOT CMAKE_CROSSCOMPILING)
+
GR_REGISTER_COMPONENT("gnuradio-companion" ENABLE_GRC
ENABLE_GR_CORE_
ENABLE_PYTHON_
PYTHON_MIN_VER_FOUND
- CHEETAH_FOUND
- LXML_FOUND
- PYGTK_FOUND
- NUMPY_FOUND
+ ${grc_python_deps}
)
########################################################################