From a95f1e2ea4344165e5d4b92f0b9a768216eee877 Mon Sep 17 00:00:00 2001 From: Matan Gover Date: Mon, 14 Dec 2020 16:49:33 +0100 Subject: [PATCH] CMake: run get_git_commit.sh from build directory. This fixes the build when running cmake from another directory, i.e. this now works: cd verovio && cmake -Hcmake -Btools --- cmake/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index a48105f9c3a..9d9eee01540 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -90,6 +90,7 @@ endif() execute_process( COMMAND ../tools/get_git_commit.sh + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} OUTPUT_VARIABLE GIT_COMMIT )