Skip to content

Commit

Permalink
Marking DC directory safe (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshGandhi-AWS authored May 8, 2023
1 parent e038c91 commit 022f8ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt.versioning
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@

cmake_minimum_required(VERSION 3.10)

# Marking Device Client directory safe
execute_process(COMMAND git config --global --add safe.directory ${CMAKE_CURRENT_SOURCE_DIR})

# Check to make sure we have Git info for this package
execute_process(COMMAND git log --pretty=format:'%h' -n 1
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE GIT_INFO
ERROR_QUIET)
OUTPUT_VARIABLE GIT_INFO)

function (load_version_from_file)
# Git is not available (this is the case if the source is packaged as an archive), get version from file
Expand Down

0 comments on commit 022f8ac

Please sign in to comment.