Push change in PR #1500. Thank you @kmilos.

main
Robin Mills 4 years ago
parent f71a3fd10c
commit b975ad4cbb

@ -1,14 +1,14 @@
IF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") IF(NOT EXISTS "${CMAKE_BINARY_DIR}/install_manifest.txt")
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_BINARY_DIR@/install_manifest.txt\"") MESSAGE(FATAL_ERROR "Cannot find install manifest: ${CMAKE_BINARY_DIR}/install_manifest.txt")
ENDIF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") ENDIF(NOT EXISTS "${CMAKE_BINARY_DIR}/install_manifest.txt")
FILE(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files) FILE(READ "${CMAKE_BINARY_DIR}/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}") STRING(REGEX REPLACE "\n" ";" files "${files}")
FOREACH(file ${files}) FOREACH(file ${files})
MESSAGE(STATUS "Uninstalling \"${file}\"") MESSAGE(STATUS "Uninstalling: ${file}")
IF(EXISTS "${file}") IF(EXISTS "${file}")
EXEC_PROGRAM( EXEC_PROGRAM(
"@CMAKE_COMMAND@" ARGS "-E remove \"${file}\"" "${CMAKE_COMMAND}" ARGS "-E remove \"${file}\""
OUTPUT_VARIABLE rm_out OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval RETURN_VALUE rm_retval
) )

Loading…
Cancel
Save