]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Don't run the test with numpy if this optional product is not used
authorskv <skv@opencascade.com>
Fri, 29 Nov 2013 09:45:08 +0000 (09:45 +0000)
committerskv <skv@opencascade.com>
Fri, 29 Nov 2013 09:45:08 +0000 (09:45 +0000)
src/MEDLoader/Swig/CMakeLists.txt

index c011c3ce46175bcc4992a345d1a1b8005da33f93..8ebb88c6edccf5fed562a149fee6056826912c7d 100644 (file)
@@ -75,4 +75,7 @@ ADD_TEST(MEDLoaderTest3 ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/MEDLoad
 ADD_TEST(MEDLoaderTest4 ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/MEDLoaderTest4.py)
 ADD_TEST(MEDLoaderExamplesTest ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/MEDLoaderExamplesTest.py)
 ADD_TEST(SauvLoaderTest ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/SauvLoaderTest.py)
-ADD_TEST(MEDLoaderCouplingTrainingSession ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/MEDLoaderCouplingTrainingSession.py)
+
+IF(NUMPY_FOUND)
+  ADD_TEST(MEDLoaderCouplingTrainingSession ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/MEDLoaderCouplingTrainingSession.py)
+ENDIF(NUMPY_FOUND)