diff options
Diffstat (limited to 'cmake/modules/apply_patch.cmake.in')
-rw-r--r-- | cmake/modules/apply_patch.cmake.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/modules/apply_patch.cmake.in b/cmake/modules/apply_patch.cmake.in new file mode 100644 index 0000000..61ce075 --- /dev/null +++ b/cmake/modules/apply_patch.cmake.in @@ -0,0 +1,5 @@ +# See ApplyPatch.cmake +if(NOT PATCH_FILE) + message(FATAL_ERROR "no PATCH_FILE passed to the script") +endif() +execute_process(COMMAND @PATCH_COMMAND@ -Np1 INPUT_FILE ${PATCH_FILE}) |