From b975ad4cbb9e5f6ea4237f69f9afac25de9f3d54 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Fri, 19 Mar 2021 11:22:23 +0000 Subject: [PATCH] Push change in PR #1500. Thank you @kmilos. --- cmake/exiv2_uninstall.cmake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmake/exiv2_uninstall.cmake b/cmake/exiv2_uninstall.cmake index 36dd9ba8..2047e941 100644 --- a/cmake/exiv2_uninstall.cmake +++ b/cmake/exiv2_uninstall.cmake @@ -1,14 +1,14 @@ -IF(NOT EXISTS "@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") +IF(NOT EXISTS "${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") -FILE(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files) +FILE(READ "${CMAKE_BINARY_DIR}/install_manifest.txt" files) STRING(REGEX REPLACE "\n" ";" files "${files}") FOREACH(file ${files}) - MESSAGE(STATUS "Uninstalling \"${file}\"") + MESSAGE(STATUS "Uninstalling: ${file}") IF(EXISTS "${file}") EXEC_PROGRAM( - "@CMAKE_COMMAND@" ARGS "-E remove \"${file}\"" + "${CMAKE_COMMAND}" ARGS "-E remove \"${file}\"" OUTPUT_VARIABLE rm_out RETURN_VALUE rm_retval )