mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Support builds outside the git dir.
Oops.
This commit is contained in:
parent
62ab4b7f51
commit
6ca4f2f508
@ -5,6 +5,7 @@ set(GIT_VERSION_UPDATE "1")
|
|||||||
find_package(Git)
|
find_package(Git)
|
||||||
if(GIT_FOUND)
|
if(GIT_FOUND)
|
||||||
execute_process(COMMAND ${GIT_EXECUTABLE} describe --always
|
execute_process(COMMAND ${GIT_EXECUTABLE} describe --always
|
||||||
|
WORKING_DIRECTORY ${SOURCE_DIR}
|
||||||
RESULT_VARIABLE exit_code
|
RESULT_VARIABLE exit_code
|
||||||
OUTPUT_VARIABLE GIT_VERSION)
|
OUTPUT_VARIABLE GIT_VERSION)
|
||||||
if(NOT ${exit_code} EQUAL 0)
|
if(NOT ${exit_code} EQUAL 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user