We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e7f3f4 commit 132aa84Copy full SHA for 132aa84
1 file changed
cmake/docs_i18n_check.cmake
@@ -2,8 +2,10 @@ if(NOT DEFINED PROJECT_SOURCE_DIR)
2
message(FATAL_ERROR "PROJECT_SOURCE_DIR must be defined")
3
endif()
4
5
+find_package(Git REQUIRED)
6
+
7
execute_process(
- COMMAND git status --porcelain -- docs/locale
8
+ COMMAND "${GIT_EXECUTABLE}" status --porcelain -- docs/locale
9
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
10
OUTPUT_VARIABLE docs_i18n_status
11
RESULT_VARIABLE docs_i18n_status_result
@@ -17,7 +19,7 @@ endif()
17
19
18
20
if(docs_i18n_status)
21
- COMMAND git diff --stat -- docs/locale
22
+ COMMAND "${GIT_EXECUTABLE}" diff --stat -- docs/locale
23
24
OUTPUT_VARIABLE docs_i18n_diff_stat
25
ERROR_VARIABLE docs_i18n_diff_stat_error)
0 commit comments