Skip to content

Commit

Permalink
cmake : fix relative path to git submodule index (ggerganov#3915)
Browse files Browse the repository at this point in the history
  • Loading branch information
abetlen authored Nov 2, 2023
1 parent 224e7d5 commit 51b2fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../.git")
if(NOT IS_DIRECTORY "${GIT_DIR}")
file(READ ${GIT_DIR} REAL_GIT_DIR_LINK)
string(REGEX REPLACE "gitdir: (.*)\n$" "\\1" REAL_GIT_DIR ${REAL_GIT_DIR_LINK})
set(GIT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${REAL_GIT_DIR}")
set(GIT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../${REAL_GIT_DIR}")
endif()

set(GIT_INDEX "${GIT_DIR}/index")
Expand Down

0 comments on commit 51b2fc1

Please sign in to comment.