summaryrefslogtreecommitdiff
path: root/math/clad/files/patch-cmake_modules_AddClad.cmake
blob: ad0c2f242b40b0439012281df743c8032fc5eb5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- cmake/modules/AddClad.cmake.orig	2024-02-29 15:28:44 UTC
+++ cmake/modules/AddClad.cmake
@@ -1,15 +1,15 @@ if (CLAD_ENABLE_BENCHMARKS)
 if (CLAD_ENABLE_BENCHMARKS)
   # 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")
 
 endif(CLAD_ENABLE_BENCHMARKS)