From: ageay Date: Tue, 26 Nov 2013 09:59:57 +0000 (+0000) Subject: SCIPY detection X-Git-Tag: V7_3_0a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aec2758868c693a9d972d6b86729b2847c7ca5f7;p=modules%2Fmed.git SCIPY detection --- diff --git a/adm_local_without_kernel/cmake_files/FindSalomePython.cmake b/adm_local_without_kernel/cmake_files/FindSalomePython.cmake index 13adbcdb0..680f862a5 100644 --- a/adm_local_without_kernel/cmake_files/FindSalomePython.cmake +++ b/adm_local_without_kernel/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 .")