Skip to content

Commit

Permalink
BUILD: Evaluate git dirty status in the correct directory for CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Feb 25, 2017
1 parent bd81b6b commit 4ae6f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ if(GIT_FOUND)
string(REGEX REPLACE "desc/(.*)-([^-]*)-([^-]*)" "\\1+\\2.\\3" XOREOS_REVDESC "${XOREOS_REVDESC}")

execute_process(
COMMAND ${GIT_EXECUTABLE} update-index --refresh --unmerged
COMMAND ${GIT_EXECUTABLE} diff-index --quiet HEAD
COMMAND ${GIT_EXECUTABLE} -C ${CMAKE_CURRENT_SOURCE_DIR} update-index --refresh --unmerged
COMMAND ${GIT_EXECUTABLE} -C ${CMAKE_CURRENT_SOURCE_DIR} diff-index --quiet HEAD
OUTPUT_QUIET ERROR_QUIET
RESULT_VARIABLE XOREOS_REVDIRT
)
Expand Down

0 comments on commit 4ae6f14

Please sign in to comment.