git: 7b5bf3dd7577 - main - graphics/glvis: fix in advance of CMake 3.26

From: Adriaan de Groot <adridg_at_FreeBSD.org>
Date: Wed, 12 Apr 2023 22:29:41 UTC
The branch main has been updated by adridg:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7b5bf3dd7577c240c4467eebbef720c63ef9aade

commit 7b5bf3dd7577c240c4467eebbef720c63ef9aade
Author:     Adriaan de Groot <adridg@FreeBSD.org>
AuthorDate: 2023-03-23 20:37:48 +0000
Commit:     Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2023-04-12 22:27:20 +0000

    graphics/glvis: fix in advance of CMake 3.26
    
    Needs to have *some* language enabled to find sizeof(void *) before
    looking for mfem.
---
 graphics/glvis/files/patch-CMakeLists.txt | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/graphics/glvis/files/patch-CMakeLists.txt b/graphics/glvis/files/patch-CMakeLists.txt
index 725bede416c6..b0428a6c0c3e 100644
--- a/graphics/glvis/files/patch-CMakeLists.txt
+++ b/graphics/glvis/files/patch-CMakeLists.txt
@@ -1,5 +1,14 @@
---- CMakeLists.txt.orig	2022-08-24 16:49:50 UTC
+--- CMakeLists.txt.orig	2022-05-24 00:33:38 UTC
 +++ CMakeLists.txt
+@@ -22,7 +22,7 @@ if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR
+   message(FATAL_ERROR "In-source builds are prohibited.")
+ endif ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
+ 
+-project(glvis NONE)
++project(glvis C)
+ 
+ # Import MFEM. The following variables can be used to help CMake find MFEM:
+ #  * MFEM_DIR - absolute path to the MFEM build or install prefix.
 @@ -333,10 +333,12 @@ if(NOT EMSCRIPTEN)
    install(TARGETS app
      RUNTIME DESTINATION .