]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Merge branch 'master' of https://git.salome-platform.org/git/modules/paravis
authorCédric Aguerre <cedric.aguerre@edf.fr>
Fri, 6 Nov 2015 14:08:58 +0000 (15:08 +0100)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Fri, 6 Nov 2015 14:08:58 +0000 (15:08 +0100)
1  2 
CMakeLists.txt

diff --cc CMakeLists.txt
index 6409504b87834414076f767901961d55bdcb755b,2663ac02f3f0eaab445dc7dcc22e125ddb971d74..ea961ae99da33f95735256d1276d196591ce5bd8
@@@ -209,18 -197,21 +203,24 @@@ IF(SALOME_PARAVIS_BUILD_PLUGINS AND SAL
      LIST(APPEND CMAKE_MODULE_PATH "${SMESH_ROOT_DIR}/adm_local/cmake_files")
      FIND_PACKAGE(SalomeSMESH REQUIRED)
    ELSE()
 -    MESSAGE(FATAL_ERROR "We absolutely need a Salome MESH to import MESH objects to PARAVIS, please define SMESH_ROOT_DIR
 -                         or set SALOME_PARAVIS_USE_SMESH_SOURCE=OFF")
 +    MESSAGE(WARNING "Salome MESH is absolutely needed to import MESH objects to PARAVIS.
 +                    As we do not find it, we set the variable SALOME_PARAVIS_USE_SMESH_SOURCE=OFF.
 +                    If you really need Salome MESH, please define SMESH_ROOT_DIR and re-run configuration script.")
 +    SET(SALOME_PARAVIS_USE_SMESH_SOURCE OFF)
    ENDIF()
  ELSEIF(NOT SALOME_PARAVIS_BUILD_PLUGINS AND SALOME_PARAVIS_USE_SMESH_SOURCE)
 -  MESSAGE(FATAL_ERROR "We absolutely need to build PARAVIS plugins to use the import of MESH objects to PARAVIS,
 -                       please set SALOME_PARAVIS_BUILD_PLUGINS=ON
 -                       or SALOME_PARAVIS_USE_SMESH_SOURCE=OFF")
 +  MESSAGE(WARNING "PARAVIS plugins must be built to use the import of MESH objects to PARAVIS.
 +                  As plugins are not built, we set the variable SALOME_PARAVIS_USE_SMESH_SOURCE=OFF.
 +                  If you really want to use Salome MESH, please set SALOME_PARAVIS_BUILD_PLUGINS=ON and re-run configuration script.")
 +  SET(SALOME_PARAVIS_USE_SMESH_SOURCE OFF)
  ENDIF()
  
+ IF(SALOME_BUILD_TESTS)
+   ENABLE_TESTING()
+   FIND_PACKAGE(SalomeCppUnit)
+   SALOME_LOG_OPTIONAL_PACKAGE(CppUnit SALOME_BUILD_TESTS)
+ ENDIF()
  ## Detection summary:
  SALOME_PACKAGE_REPORT_AND_CHECK()