You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message(WARNING"Git repository not found; to enable automatic generation of build info, make sure Git is installed and the project is a Git repository.")
96
+
message(WARNING"Git repository not found; to enable automatic generation of build info, make sure Git is installed and the project is a Git repository.")
Copy file name to clipboardExpand all lines: scripts/build-info.cmake
+29-29Lines changed: 29 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -3,38 +3,38 @@ set(COUNT 0)
3
3
4
4
find_package(Git)
5
5
if(NOTGit_FOUND)
6
-
execute_process(
7
-
COMMANDwhichgit
8
-
OUTPUT_VARIABLEGIT_EXECUTABLE
9
-
OUTPUT_STRIP_TRAILING_WHITESPACE
10
-
)
11
-
if(NOTGIT_EXECUTABLESTREQUAL"")
12
-
set(Git_FOUNDTRUE)
13
-
message(STATUS"Found Git using 'which': ${GIT_EXECUTABLE}")
14
-
else()
15
-
message(WARNING"Git not found using 'find_package' or 'which'. Build info will not be accurate. Consider installing Git or ensuring it is in the PATH.")
16
-
endif()
6
+
execute_process(
7
+
COMMANDwhichgit
8
+
OUTPUT_VARIABLEGIT_EXECUTABLE
9
+
OUTPUT_STRIP_TRAILING_WHITESPACE
10
+
)
11
+
if(NOTGIT_EXECUTABLESTREQUAL"")
12
+
set(Git_FOUNDTRUE)
13
+
message(STATUS"Found Git using 'which': ${GIT_EXECUTABLE}")
14
+
else()
15
+
message(WARNING"Git not found using 'find_package' or 'which'. Build info will not be accurate. Consider installing Git or ensuring it is in the PATH.")
0 commit comments