https://github.com/Kitware/CMake
Revision ddbe2e1d7da460684e4d81fc8b3f69510f87b78e authored by Brad King on 25 March 2013, 14:08:10 UTC, committed by CMake Topic Stage on 25 March 2013, 14:08:10 UTC
0b7ad3f Replace <TARGET> in CMAKE_<LANG>_COMPILE_OBJECT rule variables

2 parent s 365ada4 + 0b7ad3f
Raw File
Tip revision: ddbe2e1d7da460684e4d81fc8b3f69510f87b78e authored by Brad King on 25 March 2013, 14:08:10 UTC
Merge topic 'compile-object-TARGET-placeholder'
Tip revision: ddbe2e1
cmake_uninstall.cmake.in
if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
  message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
endif()

file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
string(REGEX REPLACE "\n" ";" files "${files}")
foreach(file ${files})
  message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
  if(EXISTS "$ENV{DESTDIR}${file}")
    exec_program(
      "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
      OUTPUT_VARIABLE rm_out
      RETURN_VALUE rm_retval
      )
    if("${rm_retval}" STREQUAL 0)
    else()
      message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
    endif()
  else()
    message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
  endif()
endforeach()
back to top