Skip to content
Permalink
Browse files

Run git in source tree, not build tree. Fixes bug #4086.

  • Loading branch information
Sandro Santilli authored and jef-n committed Jul 14, 2011
1 parent 86acc7d commit 98562b3bd3a5f64ef37b95fe53f7ab7a50edff82
Showing with 4 additions and 1 deletion.
  1. +4 −1 CMakeLists.txt
@@ -438,7 +438,10 @@ IF (GIT_MARKER)
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
ELSE(MSVC)
EXECUTE_PROCESS(COMMAND ${GIT} log -n1 --pretty=%h OUTPUT_VARIABLE REVISION)
EXECUTE_PROCESS(
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND ${GIT} log -n1 --pretty=%h OUTPUT_VARIABLE REVISION
)
STRING(STRIP "${REVISION}" REVISION)
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/qgsversion.h

0 comments on commit 98562b3

Please sign in to comment.
You can’t perform that action at this time.