https://github.com/Kitware/CMake
Revision 8fa1ceb136dfa6c4d969fe78f4ebb46ae0abe6d0 authored by Brad King on 21 October 2013, 13:02:09 UTC, committed by CMake Topic Stage on 21 October 2013, 13:02:09 UTC
216afc8 MSVC: Add /FS flag for cl >= 18 to allow parallel compilation (#14492)

2 parent s 9fb65d7 + 216afc8
Raw File
Tip revision: 8fa1ceb136dfa6c4d969fe78f4ebb46ae0abe6d0 authored by Brad King on 21 October 2013, 13:02:09 UTC
Merge topic 'vs12-parallel-cl-FS'
Tip revision: 8fa1ceb
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