summaryrefslogtreecommitdiff
path: root/contrib/vcpkg-ports/openssl/unix/remove-deps.cmake
blob: 53ad6ef2906539f4c58c81590f0b1668ecf49c87 (plain)
1
2
3
4
5
6
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()