llvm.org GIT mirror llvm / 0bda850
CMake: ignore git stderr when trying to sort out revision. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301650 91177308-0d34-0410-b5e6-96231b3b80d8 Tim Northover 2 years ago
2 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4444 WORKING_DIRECTORY ${SOURCE_DIR}
4545 TIMEOUT 5
4646 RESULT_VARIABLE git_result
47 OUTPUT_VARIABLE git_output)
47 OUTPUT_VARIABLE git_output
48 ERROR_QUIET)
4849 if( git_result EQUAL 0 )
4950 string(REGEX MATCH "URL: ([^ \n]*)" svn_url ${git_output})
5051 if(svn_url)
1313 execute_process(COMMAND ${git_executable} rev-parse --git-dir
1414 WORKING_DIRECTORY ${path}/cmake
1515 RESULT_VARIABLE git_result
16 OUTPUT_VARIABLE git_dir)
16 OUTPUT_VARIABLE git_dir
17 ERROR_QUIET)
1718 if(git_result EQUAL 0)
1819 string(STRIP "${git_dir}" git_dir)
1920 set(${out_var} "${git_dir}/logs/HEAD")