remove-deps.cmake 307 B

1234567
  1. file(GLOB_RECURSE MAKEFILES ${DIR}/*/Makefile)
  2. foreach(MAKEFILE ${MAKEFILES})
  3. message("removing deps from ${MAKEFILE}")
  4. file(READ "${MAKEFILE}" _contents)
  5. string(REGEX REPLACE "\n# DO NOT DELETE THIS LINE.*" "" _contents "${_contents}")
  6. file(WRITE "${MAKEFILE}" "${_contents}")
  7. endforeach()