From f080f5fa3683481959718ea8422761a60773cf68 Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 26 Nov 2013 10:21:00 +0000 Subject: [PATCH] Split Numpy and Scipy detection --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index feb00d5e1..e43611172 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,6 +191,14 @@ IF(SALOME_MED_ENABLE_PYTHON) IF(NOT SALOME_MED_STANDALONE) FIND_PACKAGE(SalomeOmniORBPy REQUIRED) ENDIF(NOT SALOME_MED_STANDALONE) + # Set the extra flags for SWIG for numpy and scipy + SET(SWIG_EXTRA_FLAGS_FOR_NUMPYANDSCIPY) + IF(NUMPY_FOUND) + SET(SWIG_EXTRA_FLAGS_FOR_NUMPYANDSCIPY "-DWITH_NUMPY") + ENDIF(NUMPY_FOUND) + IF(SCIPY_FOUND) + SET(SWIG_EXTRA_FLAGS_FOR_NUMPYANDSCIPY "${SWIG_EXTRA_FLAGS_FOR_NUMPYANDSCIPY};-DWITH_SCIPY") + ENDIF(SCIPY_FOUND) ENDIF(SALOME_MED_ENABLE_PYTHON) # Detection report -- 2.39.2