From ecc07e77939b465b98dab1e7ec4de2013c84b253 Mon Sep 17 00:00:00 2001 From: Vladimir Glavnyy <31897320+vglavnyy@users.noreply.github.com> Date: Fri, 1 Jun 2018 22:22:17 +0700 Subject: [PATCH] Fix a small problem with add_subdirectory(${FLATBUFFERS_DIR}) from top level project. (#4764) --- CMake/Version.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMake/Version.cmake b/CMake/Version.cmake index 3522ec6a9..db6613b84 100644 --- a/CMake/Version.cmake +++ b/CMake/Version.cmake @@ -1,7 +1,7 @@ find_program(GIT git) execute_process( COMMAND ${GIT} describe - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE GIT_DESCRIBE_DIRTY OUTPUT_STRIP_TRAILING_WHITESPACE )