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 )