From 043fba2ad9d68d1e01cb70e6254ae90d3d2e6be1 Mon Sep 17 00:00:00 2001 From: mnt Date: Thu, 29 Oct 2015 15:48:40 +0300 Subject: [PATCH] Fix configuration problem --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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() -- 2.39.2