cleanup_package.cmake 393 Bytes
Newer Older
1
macro(cleanup_package)
2 3 4 5 6 7 8 9 10
message(STATUS "Empty package staging directory: ${CMAKE_INSTALL_PREFIX}/${PKG_STAGE_DIR}")
execute_process(COMMAND
g  ${CMAKE_COMMAND} -E remove_directory
  "${CMAKE_INSTALL_PREFIX}/${PKG_STAGE_DIR}"
  )
message(STATUS "Remove PACKAGE_OUTPUT_FILE: ${PACKAGE_OUTPUT_FILE}")
execute_process(COMMAND
  ${CMAKE_COMMAND} -E remove -f "${PACKAGE_OUTPUT_FILE}"
  )
11
endmacro()