diff -rupN --no-dereference gmsh-4.11.1-source/CMakeLists.txt gmsh-4.11.1-source-new/CMakeLists.txt
--- gmsh-4.11.1-source/CMakeLists.txt 2022-12-21 15:34:05.142442056 +0100
+++ gmsh-4.11.1-source-new/CMakeLists.txt 2022-12-21 15:34:05.425442063 +0100
@@ -1645,6 +1645,8 @@ if(NOT ENABLE_BUILD_DYNAMIC AND NOT ENAB
endif()
endif()
+list(APPEND LINK_LIBRARIES -lgl2ps -lGL)
+
# Linux-specific linker options
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if(HAVE_OCC)
diff -rupN --no-dereference gmsh-4.11.1-source/src/graphics/CMakeLists.txt gmsh-4.11.1-source-new/src/graphics/CMakeLists.txt
--- gmsh-4.11.1-source/src/graphics/CMakeLists.txt 2022-09-28 20:00:59.000000000 +0200
+++ gmsh-4.11.1-source-new/src/graphics/CMakeLists.txt 2022-12-21 15:34:05.425442063 +0100
@@ -15,7 +15,6 @@ set(SRC
drawScales.cpp
drawGraph2d.cpp
drawGlyph.cpp
- gl2ps.cpp
gl2gif.cpp
gl2jpeg.cpp
gl2png.cpp