]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Split Numpy and Scipy detection
authorageay <ageay>
Tue, 26 Nov 2013 10:21:00 +0000 (10:21 +0000)
committerageay <ageay>
Tue, 26 Nov 2013 10:21:00 +0000 (10:21 +0000)
CMakeLists.txt

index feb00d5e156b7bf755f423d012c33f3f4c941707..e43611172c966ec1c86af2331bffe4e3e3b0beac 100644 (file)
@@ -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