diff options
author | George Kiagiadakis <gkiagia@tolabaki.gr> | 2016-06-21 14:18:21 +0300 |
---|---|---|
committer | George Kiagiadakis <gkiagia@tolabaki.gr> | 2016-09-07 22:18:31 +0300 |
commit | 8bc552180387d5b913e5852721b7e172e8b5237a (patch) | |
tree | 4ad645273b04746801e2aed204ba0e33538957de /cmake_uninstall.cmake.in | |
parent | 00b5b425275f154b013365c944a67851c77d5ab2 (diff) |
cmake: get rid of the old & ugly syntax of having arguments in else(), endif(), endmacro(), endfunction()
This is an old cmake syntax that is not required anymore.
It's ugly and makes code hard to read.
Diffstat (limited to 'cmake_uninstall.cmake.in')
-rw-r--r-- | cmake_uninstall.cmake.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmake_uninstall.cmake.in b/cmake_uninstall.cmake.in index df95fb9d..9bf388d4 100644 --- a/cmake_uninstall.cmake.in +++ b/cmake_uninstall.cmake.in @@ -1,6 +1,6 @@ IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") -ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") +ENDIF() FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) STRING(REGEX REPLACE "\n" ";" files "${files}") @@ -14,8 +14,8 @@ FOREACH(file ${files}) ) IF(NOT "${rm_retval}" STREQUAL 0) MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") - ENDIF(NOT "${rm_retval}" STREQUAL 0) - ELSE(EXISTS "$ENV{DESTDIR}${file}") + ENDIF() + ELSE() MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") - ENDIF(EXISTS "$ENV{DESTDIR}${file}") -ENDFOREACH(file) + ENDIF() +ENDFOREACH() |