Skip to content

Commit

Permalink
CMake: run get_git_commit.sh from build directory.
Browse files Browse the repository at this point in the history
This fixes the build when running cmake from another directory,
i.e. this now works:
cd verovio && cmake -Hcmake -Btools
  • Loading branch information
matangover committed Dec 14, 2020
1 parent 130e574 commit a95f1e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ endif()

execute_process(
COMMAND ../tools/get_git_commit.sh
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
OUTPUT_VARIABLE GIT_COMMIT
)

Expand Down

0 comments on commit a95f1e2

Please sign in to comment.