Skip to content

Commit

Permalink
Prefer cwd to git -C for CentOS compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
taliaga committed Jul 5, 2022
1 parent f93813b commit 003d04d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ include_directories(${Boost_INCLUDE_DIRS})

find_program(GIT_PATH git)

execute_process(COMMAND ${GIT_PATH} -C ${CMAKE_SOURCE_DIR} describe --tags --dirty --always
execute_process(COMMAND ${GIT_PATH} describe --tags --dirty --always
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE LATEST_GIT_TAG
OUTPUT_STRIP_TRAILING_WHITESPACE)
if(NOT LATEST_GIT_TAG)
Expand Down

0 comments on commit 003d04d

Please sign in to comment.