summaryrefslogtreecommitdiff
path: root/contrib/vcpkg-ports/openssl/unix/remove-deps.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/vcpkg-ports/openssl/unix/remove-deps.cmake')
-rw-r--r--contrib/vcpkg-ports/openssl/unix/remove-deps.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/vcpkg-ports/openssl/unix/remove-deps.cmake b/contrib/vcpkg-ports/openssl/unix/remove-deps.cmake
new file mode 100644
index 0000000..53ad6ef
--- /dev/null
+++ b/contrib/vcpkg-ports/openssl/unix/remove-deps.cmake
@@ -0,0 +1,7 @@
+file(GLOB_RECURSE MAKEFILES ${DIR}/*/Makefile)
+foreach(MAKEFILE ${MAKEFILES})
+ message("removing deps from ${MAKEFILE}")
+ file(READ "${MAKEFILE}" _contents)
+ string(REGEX REPLACE "\n# DO NOT DELETE THIS LINE.*" "" _contents "${_contents}")
+ file(WRITE "${MAKEFILE}" "${_contents}")
+endforeach()