git: d05d11f6c58e - main - math/clad: Add missing patch

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 12 Feb 2024 07:57:32 UTC
The branch main has been updated by yuri:

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

commit d05d11f6c58eae82ff6cbbb2c916ca99f78520de
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-02-12 07:57:08 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-02-12 07:57:08 +0000

    math/clad: Add missing patch
---
 math/clad/files/patch-cmake_modules_AddClad.cmake | 24 +++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/math/clad/files/patch-cmake_modules_AddClad.cmake b/math/clad/files/patch-cmake_modules_AddClad.cmake
new file mode 100644
index 000000000000..6d24b30a687d
--- /dev/null
+++ b/math/clad/files/patch-cmake_modules_AddClad.cmake
@@ -0,0 +1,24 @@
+--- cmake/modules/AddClad.cmake.orig	2024-02-12 07:51:28 UTC
++++ cmake/modules/AddClad.cmake
+@@ -1,14 +1,14 @@
+ # Find the current branch.
+-execute_process(WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
+-                COMMAND git rev-parse HEAD
+-                OUTPUT_VARIABLE CURRENT_REPO_COMMIT
+-                OUTPUT_STRIP_TRAILING_WHITESPACE)
+-string(REPLACE "/" "" CURRENT_REPO_COMMIT ${CURRENT_REPO_COMMIT})
++#execute_process(WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
++#                COMMAND git rev-parse HEAD
++#                OUTPUT_VARIABLE CURRENT_REPO_COMMIT
++#                OUTPUT_STRIP_TRAILING_WHITESPACE)
++#string(REPLACE "/" "" CURRENT_REPO_COMMIT ${CURRENT_REPO_COMMIT})
+ 
+ # Ask cmake to reconfigure each time we change the branch so that it can change
+ # the value of CURRENT_REPO_COMMIT.
+-set_property(DIRECTORY APPEND PROPERTY
+-             CMAKE_CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/.git/HEAD")
++#set_property(DIRECTORY APPEND PROPERTY
++#             CMAKE_CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/.git/HEAD")
+ 
+ #-------------------------------------------------------------------------------
+ # function ENABLE_CLAD_FOR_EXECUTABLE(<executable>