From: mnt Date: Thu, 29 Oct 2015 12:48:40 +0000 (+0300) Subject: Fix configuration problem X-Git-Tag: V8_0_pre X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=043fba2ad9d68d1e01cb70e6254ae90d3d2e6be1;p=modules%2Fparavis.git Fix configuration problem --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4aed0ec8..2663ac02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()