diff --git a/cmake/exiv2_uninstall.cmake b/cmake/exiv2_uninstall.cmake index fdd9f62545..30b0c2763b 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)