File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,14 @@ if((NOT (OpenCoarraysVersion MATCHES "[0-9]+\\.[0-9]+\\.[0-9]+")) AND (EXISTS "$
39
39
OUTPUT_STRIP_TRAILING_WHITESPACE )
40
40
if ((git_status STREQUAL "0" ) AND (git_output MATCHES "[0-9]+\\ .[0-9]+\\ .[0-9]+" ))
41
41
set (OpenCoarraysVersion "${git_output} " )
42
- execute_process (COMMAND "${GIT_EXECUTABLE} " describe --always --dirty
42
+ endif ()
43
+ execute_process (COMMAND "${GIT_EXECUTABLE} " describe --always --dirty
43
44
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR} "
44
45
RESULT_VARIABLE git_status
45
46
OUTPUT_VARIABLE full_git_describe
46
47
OUTPUT_STRIP_TRAILING_WHITESPACE )
48
+ if (NOT (git_status STREQUAL "0" ))
49
+ set (full_git_describe NOTFOUND )
47
50
endif ()
48
51
else ()
49
52
message ( WARNING "Could not find git executable!" )
You can’t perform that action at this time.
0 commit comments