From 9b58dc91c0bf5a87128a24d8e22a8e19aa974c9f Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 22 Oct 2011 13:29:44 -0700 Subject: cmake: make python checks optional for cross builds --- gr-wxgui/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gr-wxgui') diff --git a/gr-wxgui/CMakeLists.txt b/gr-wxgui/CMakeLists.txt index 5beb39f5e..7afae785a 100644 --- a/gr-wxgui/CMakeLists.txt +++ b/gr-wxgui/CMakeLists.txt @@ -29,11 +29,17 @@ GR_PYTHON_CHECK_MODULE("numpy" numpy True # Register component ######################################################################## include(GrComponent) +if(NOT CMAKE_CROSSCOMPILING) + set(wxgui_python_deps + NUMPY_FOUND + WX_FOUND + ) +endif(NOT CMAKE_CROSSCOMPILING) + GR_REGISTER_COMPONENT("gr-wxgui" ENABLE_GR_WXGUI ENABLE_GR_CORE ENABLE_PYTHON - NUMPY_FOUND - WX_FOUND + ${wxgui_python_deps} ) ######################################################################## -- cgit