message(WARNING"Git executable was not found. Git submodule checks will not be executed. If you have any build issues at all, start by adding git executable to the PATH and rerun cmake to not see this warning again.")
function(git_submodule_checkroot_path)
# no-op
endfunction()
else(NOTGIT_FOUND)
function(git_submodule_checkroot_path)
execute_process(
COMMAND${GIT_EXECUTABLE}submodulestatus
WORKING_DIRECTORY${root_path}
OUTPUT_VARIABLEsubmodule_status
)
# git submodule status output not guaranteed to be stable,
# may need to check GIT_VERSION_STRING and do some fiddling in the