]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Fix configuration problem V8_0_pre
authormnt <mnt@opencascade.com>
Thu, 29 Oct 2015 12:48:40 +0000 (15:48 +0300)
committermnt <mnt@opencascade.com>
Thu, 29 Oct 2015 12:48:40 +0000 (15:48 +0300)
CMakeLists.txt

index 4aed0ec84294da2adeb9af0943449c3f7dc84275..2663ac02f3f0eaab445dc7dcc22e125ddb971d74 100644 (file)
@@ -81,12 +81,6 @@ OPTION(SALOME_PARAVIS_USE_SMESH_SOURCE "Import a MESH object to PARAVIS via its
 CMAKE_DEPENDENT_OPTION(SALOME_LIGHT_ONLY "Build SALOME Light only (no CORBA)" OFF
                        "NOT SALOME_KERNEL_LIGHT_ONLY" ON)
 
-IF(SALOME_BUILD_TESTS)
-  ENABLE_TESTING()
-  FIND_PACKAGE(SalomeCppUnit)
-  SALOME_LOG_OPTIONAL_PACKAGE(CppUnit SALOME_BUILD_TESTS)
-ENDIF()
-
 # Prerequisites
 # =============
 # Find "big" prerequisites first - they reference themselves many others
@@ -212,6 +206,12 @@ ELSEIF(NOT SALOME_PARAVIS_BUILD_PLUGINS AND SALOME_PARAVIS_USE_SMESH_SOURCE)
                        or 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()