From 4a885ad1e51053427b00bbdd7bcb77f75017b5e4 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 13 Jun 2017 12:59:01 +0300 Subject: [PATCH] Build with both: OpenGL2 and OpenGL renreding backend. --- src/Plugins/SimpleMode/IO/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Plugins/SimpleMode/IO/CMakeLists.txt b/src/Plugins/SimpleMode/IO/CMakeLists.txt index a33d5811..f683609e 100644 --- a/src/Plugins/SimpleMode/IO/CMakeLists.txt +++ b/src/Plugins/SimpleMode/IO/CMakeLists.txt @@ -19,5 +19,9 @@ # Author : Anthony Geay (EDF R&D) VTK_MODULE_LIBRARY(vtkSimpleMode vtkSimpleMode.cxx) -TARGET_LINK_LIBRARIES(vtkSimpleMode vtkPVVTKExtensionsRendering vtkFiltersGeneral vtkFiltersCore vtkRenderingOpenGL ${PARAVIEW_LIBRARIES}) +IF(${SALOME_GUI_USE_OPENGL2}) + TARGET_LINK_LIBRARIES(vtkSimpleMode vtkPVVTKExtensionsRendering vtkFiltersGeneral vtkFiltersCore vtkRenderingOpenGL2 ${PARAVIEW_LIBRARIES}) +ELSE() + TARGET_LINK_LIBRARIES(vtkSimpleMode vtkPVVTKExtensionsRendering vtkFiltersGeneral vtkFiltersCore vtkRenderingOpenGL ${PARAVIEW_LIBRARIES}) +ENDIF() INSTALL(TARGETS vtkSimpleMode RUNTIME DESTINATION lib/salome LIBRARY DESTINATION lib/salome ARCHIVE DESTINATION lib/salome) -- 2.39.2