From: vsr Date: Tue, 30 Nov 2021 12:33:38 +0000 (+0300) Subject: Fix compilation problem caused by previous commit X-Git-Tag: V9_8_0rc1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FV9_8_BR;p=modules%2Fparavis.git Fix compilation problem caused by previous commit --- diff --git a/src/Plugins/VoroGauss/CMakeLists.txt b/src/Plugins/VoroGauss/CMakeLists.txt index 3c5b4018..1f6897ef 100644 --- a/src/Plugins/VoroGauss/CMakeLists.txt +++ b/src/Plugins/VoroGauss/CMakeLists.txt @@ -21,10 +21,6 @@ cmake_minimum_required(VERSION 3.8) project(VoroGaussPlugin) find_package(ParaView REQUIRED) -IF(SALOME_BUILD_TESTS) - ADD_SUBDIRECTORY(Test) -ENDIF(SALOME_BUILD_TESTS) - include(GNUInstallDirs) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}") set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}") diff --git a/src/Plugins/VoroGauss/plugin/CMakeLists.txt b/src/Plugins/VoroGauss/plugin/CMakeLists.txt index 0119ce9a..87d9472c 100644 --- a/src/Plugins/VoroGauss/plugin/CMakeLists.txt +++ b/src/Plugins/VoroGauss/plugin/CMakeLists.txt @@ -59,3 +59,7 @@ install(TARGETS VoroGaussPlugin LIBRARY DESTINATION lib/paraview ARCHIVE DESTINATION lib/paraview ) + +IF(SALOME_BUILD_TESTS) + ADD_SUBDIRECTORY(Test) +ENDIF(SALOME_BUILD_TESTS)