From: rnv Date: Tue, 13 Jun 2017 09:59:01 +0000 (+0300) Subject: Build with both: OpenGL2 and OpenGL renreding backend. X-Git-Tag: Before_python3_27062017~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a885ad1e51053427b00bbdd7bcb77f75017b5e4;p=modules%2Fparavis.git Build with both: OpenGL2 and OpenGL renreding backend. --- 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)