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 "$
3939 OUTPUT_STRIP_TRAILING_WHITESPACE)
4040 if ((git_status STREQUAL "0" ) AND (git_output MATCHES "[0-9]+\\ .[0-9]+\\ .[0-9]+" ))
4141 set (OpenCoarraysVersion "${git_output} " )
42- execute_process (COMMAND "${GIT_EXECUTABLE} " describe --always --dirty
42+ endif ()
43+ execute_process (COMMAND "${GIT_EXECUTABLE} " describe --always --dirty
4344 WORKING_DIRECTORY "${CMAKE_SOURCE_DIR} "
4445 RESULT_VARIABLE git_status
4546 OUTPUT_VARIABLE full_git_describe
4647 OUTPUT_STRIP_TRAILING_WHITESPACE)
48+ if (NOT (git_status STREQUAL "0" ))
49+ set (full_git_describe NOTFOUND )
4750 endif ()
4851 else ()
4952 message ( WARNING "Could not find git executable!" )
You can’t perform that action at this time.
0 commit comments