diff --git a/cmake/exiv2_uninstall.cmake b/cmake/exiv2_uninstall.cmake index fdd9f625..30b0c276 100644 --- a/cmake/exiv2_uninstall.cmake +++ b/cmake/exiv2_uninstall.cmake @@ -16,7 +16,7 @@ FOREACH(file ${files}) ELSE("${rm_retval}" STREQUAL 0) MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"") ENDIF("${rm_retval}" STREQUAL 0) - ELSE(EXISTS "${file}") + ELSE(IS_SYMLINK "${file}" OR EXISTS "${file}") MESSAGE(STATUS "File \"${file}\" does not exist.") - ENDIF(EXISTS "${file}") + ENDIF(IS_SYMLINK "${file}" OR EXISTS "${file}") ENDFOREACH(file)