Skip to content
Snippets Groups Projects
Commit dd214f13 authored by w-klijn's avatar w-klijn Committed by Sam Yates
Browse files

Use cmake source directory instead of current source dir as working dir. (#250)

Fixes #249.

* Use CMake source directory instead of current source directory as the working directory in git submodule update for `google-benchmark`, in order to support git versions prior to 1.8.4.
parent 208ca28e
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ if(NOT EXISTS "${gbench_src_dir}/.git")
message(STATUS "Updating the google-benchmark submodule ${gbench_src_dir}")
execute_process(
COMMAND "${GIT_EXECUTABLE}" submodule update --init "${gbench_src_dir}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
ERROR_VARIABLE git_error
RESULT_VARIABLE git_result)
if(NOT git_result EQUAL 0)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment