Skip to content

Commit

Permalink
Update custom_steps.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmercerind authored Oct 12, 2024
1 parent 49ebed4 commit 0d9facb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/custom_steps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ file(WRITE ${stamp_dir}/reset_head.sh
"#!/bin/bash
set -e
if [[ ! -f \"${stamp_dir}/${_name}-patch\" || \"${stamp_dir}/${_name}-download\" -nt \"${stamp_dir}/${_name}-patch\" || ! -f \"${stamp_dir}/HEAD\" || \"$(cat ${stamp_dir}/HEAD)\" != \"$(git -C ${source_dir} rev-parse @{u})\" ]]; then
pwd
git -C ${source_dir} reset --hard ${reset} -q
if [[ -z \"${git_reset}\" ]]; then
find \"${stamp_dir}\" -type f ! -iname '*.cmake' -size 0c -delete
Expand All @@ -115,7 +116,6 @@ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_
WORKING_DIRECTORY <SOURCE_DIR>
COMMAND bash -c "git am --abort 2> /dev/null || true"
COMMAND bash -c "git fetch --no-recurse-submodules"
COMMAND bash -c "git --no-pager log --decorate=short --pretty=oneline"
COMMAND ${stamp_dir}/reset_head.sh
)
ExternalProject_Add_StepTargets(${_name} force-update)
Expand Down

0 comments on commit 0d9facb

Please sign in to comment.