aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/ryml/ext/c4core/cmake/PatchUtils.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/ryml/ext/c4core/cmake/PatchUtils.cmake')
-rw-r--r--thirdparty/ryml/ext/c4core/cmake/PatchUtils.cmake25
1 files changed, 0 insertions, 25 deletions
diff --git a/thirdparty/ryml/ext/c4core/cmake/PatchUtils.cmake b/thirdparty/ryml/ext/c4core/cmake/PatchUtils.cmake
deleted file mode 100644
index 164940e00..000000000
--- a/thirdparty/ryml/ext/c4core/cmake/PatchUtils.cmake
+++ /dev/null
@@ -1,25 +0,0 @@
-# create a script that applies a patch (it's different in windows)
-
-# to generate a patch:
-# subversion: svn diff --patch-compatible > path/to/the/patch.diff
-
-
-function(apply_patch patch where mark)
- if(NOT EXISTS "${mark}")
- if(NOT Patch_EXECUTABLE)
- find_package(Patch REQUIRED)
- endif()
- file(TO_NATIVE_PATH ${patch} patch_native)
- get_filename_component(patch_name "${patch}" NAME)
- message(STATUS "Applying patch: ${patch_name}")
- execute_process(
- COMMAND "${Patch_EXECUTABLE}" "-p0" "--input=${patch_native}"
- WORKING_DIRECTORY "${where}"
- RESULT_VARIABLE status)
- if(NOT status STREQUAL "0")
- message(FATAL_ERROR "could not apply patch: ${patch} ---> ${where}")
- else()
- file(TOUCH "${mark}")
- endif()
- endif()
-endfunction()