Fix a small problem with add_subdirectory(${FLATBUFFERS_DIR}) from top level project. (#4764)

This commit is contained in:
Vladimir Glavnyy 2018-06-01 22:22:17 +07:00 committed by Wouter van Oortmerssen
parent 43944a0ab1
commit ecc07e7793
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
find_program(GIT git) find_program(GIT git)
execute_process( execute_process(
COMMAND ${GIT} describe COMMAND ${GIT} describe
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE GIT_DESCRIBE_DIRTY OUTPUT_VARIABLE GIT_DESCRIBE_DIRTY
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_STRIP_TRAILING_WHITESPACE
) )