]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
ALAMOS PDF export feature
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 1 Dec 2022 11:31:34 +0000 (12:31 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 1 Dec 2022 11:31:34 +0000 (12:31 +0100)
products/compil_scripts/ParaView-5.11.0.sh

index ac03948f77f0dc869fc9d5a2530277546633e2d7..883cf483cde0c082400d4928d800529b27cf023b 100755 (executable)
@@ -311,6 +311,12 @@ CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_SurfaceLIC=ON"
 CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_ThickenLayeredCells=ON"
 CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_VTKmFilters=ON"
 
+# ALAMOS build uses PDF export feature.
+if [ "${SALOME_APPLICATION_NAME}" == "ALAMOS" ]; then
+    echo "WARNING: Assumming application is ALAMOS, switching on PDF export..."
+    CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_PythonContext2D=YES"
+    CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_IOExportPDF=YES"
+fi
 
 echo
 echo "*** cmake" ${CMAKE_OPTIONS}