Skip to content

Commit

Permalink
Merge pull request YosysHQ#125 from nathanrossi/nathanrossi/fix-git-d…
Browse files Browse the repository at this point in the history
…escribe

libtrellis/CMakeLists.txt: Run git describe in source directory
  • Loading branch information
gatecat committed Mar 10, 2020
2 parents c2cccd2 + 49e9301 commit 2e0e3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtrellis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ endfunction()
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/generated")
set(LAST_GIT_VERSION "")
if (NOT DEFINED CURRENT_GIT_VERSION)
execute_process(COMMAND git describe --tags OUTPUT_VARIABLE CURRENT_GIT_VERSION)
execute_process(COMMAND git describe --tags OUTPUT_VARIABLE CURRENT_GIT_VERSION WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
endif()
string(STRIP "${CURRENT_GIT_VERSION}" CURRENT_GIT_VERSION)
if (EXISTS "${CMAKE_BINARY_DIR}/generated/last_git_version")
Expand Down

0 comments on commit 2e0e3c2

Please sign in to comment.