Skip to content

Commit

Permalink
switching from git apply patch to patch because the attestation api i…
Browse files Browse the repository at this point in the history
…s not a standalone repo anymore -- thanks michael for spotting this

Signed-off-by: Bruno Vavala <[email protected]>
  • Loading branch information
bvavala committed Oct 24, 2024
1 parent debe6cf commit c1b7792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/crypto/attestation-api/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ SET(JWT_PATCHED_FILEPATH ${CMAKE_CURRENT_SOURCE_DIR}/${JWT_PATCHED_FILENAME} PAR

ADD_CUSTOM_COMMAND(
OUTPUT ${JWT_PATCHED_FILENAME}
COMMAND [ ! -f ${JWT_PATCHED_FILENAME} ] && cd jwt-cpp && git apply ../jwt-cpp.patch && touch ../${JWT_PATCHED_FILENAME} || true
COMMAND [ ! -f ${JWT_PATCHED_FILENAME} ] && cd jwt-cpp && patch -f -p1 < ../jwt-cpp.patch && touch ../${JWT_PATCHED_FILENAME} || true
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

ADD_CUSTOM_TARGET(patch_jwt DEPENDS ${JWT_PATCHED_FILENAME})

# TODO: devise better strategy for clean up; usually the build folder is removed so the clean is not called
ADD_CUSTOM_TARGET(clean_patch_jwt
COMMAND [ -f ${JWT_PATCHED_FILENAME} ] && cd jwt-cpp && git apply --reverse ../jwt-cpp.patch && rm ../${JWT_PATCHED_FILENAME}
COMMAND [ -f ${JWT_PATCHED_FILENAME} ] && cd jwt-cpp && patch -f -p1 -R < ../jwt-cpp.patch && rm ../${JWT_PATCHED_FILENAME}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

0 comments on commit c1b7792

Please sign in to comment.