From e005036b13ebfccf253b12ea4fbc26087962f07b Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 26 Nov 2013 09:59:12 +0000 Subject: [PATCH] SCIPY detection --- salome_adm/cmake_files/FindSalomePython.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/salome_adm/cmake_files/FindSalomePython.cmake b/salome_adm/cmake_files/FindSalomePython.cmake index 13adbcdb0..680f862a5 100644 --- a/salome_adm/cmake_files/FindSalomePython.cmake +++ b/salome_adm/cmake_files/FindSalomePython.cmake @@ -167,7 +167,14 @@ IF (SALOMEPYTHON_FOUND) ELSE(NUMPY_FOUND) MESSAGE(STATUS "NumPy not found.") ENDIF(NUMPY_FOUND) - + # SciPy detection + EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import scipy ; import sys ; sys.stdout.write(scipy.version.version)" OUTPUT_VARIABLE SCIPY_VERSION ERROR_QUIET ) + IF(SCIPY_VERSION) + SET(SCIPY_FOUND TRUE) + ENDIF(SCIPY_VERSION) + IF(SCIPY_FOUND) + MESSAGE(STATUS "Scipy found : Version ${SCIPY_VERSION}") + ENDIF(SCIPY_FOUND) ## None here ELSE() MESSAGE(STATUS "Python was only partially (or not at all) found .") -- 2.39.2