Properly apply patch to ONNX (#4939)

This commit is contained in:
Ilya Lavrenov 2021-03-25 11:54:48 +03:00 committed by GitHub
parent af95452026
commit d77869ba71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ FetchContent_Declare(
GIT_REPOSITORY ${ONNX_GIT_REPO_URL}
GIT_TAG ${ONNX_GIT_BRANCH}
# apply patch to fix problems with symbols visibility for MSVC
PATCH_COMMAND git apply --verbose ${ONNX_PATCH_FILE}
PATCH_COMMAND git reset --hard HEAD && git apply --verbose ${ONNX_PATCH_FILE}
)
macro(onnx_set_target_properties)