diff --git a/cmake/cmake_uninstall.cmake.in b/cmake/cmake_uninstall.cmake.in index cb15e0c494..aa91cd810d 100644 --- a/cmake/cmake_uninstall.cmake.in +++ b/cmake/cmake_uninstall.cmake.in @@ -30,7 +30,7 @@ foreach(file ${files}) if(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}") file(REMOVE "${filepath}") - else(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}") + else(NOT EXISTS "${filepath}") message(STATUS "File ${filepath} does not exist.") endif() endforeach()