1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00

Formatting.

This commit is contained in:
Camilla Berglund 2012-08-19 02:33:43 +02:00
parent 2cedd8f059
commit 2d3f25ce99

View File

@ -1,31 +1,29 @@
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")
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) if (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
STRING(REGEX REPLACE "\n" ";" files "${files}") message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
FOREACH(file ${files}) endif()
MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
IF(EXISTS "$ENV{DESTDIR}${file}") file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
EXEC_PROGRAM( string(REGEX REPLACE "\n" ";" files "${files}")
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out foreach (file ${files})
RETURN_VALUE rm_retval message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
) if (EXISTS "$ENV{DESTDIR}${file}")
IF(NOT "${rm_retval}" STREQUAL 0) exec_program("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval)
if (NOT "${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
ENDIF(NOT "${rm_retval}" STREQUAL 0) endif()
ELSEIF(IS_SYMLINK "$ENV{DESTDIR}${file}") elseif (IS_SYMLINK "$ENV{DESTDIR}${file}")
EXEC_PROGRAM( EXEC_PROGRAM("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" OUTPUT_VARIABLE rm_out
OUTPUT_VARIABLE rm_out RETURN_VALUE rm_retval)
RETURN_VALUE rm_retval if (NOT "${rm_retval}" STREQUAL 0)
) message(FATAL_ERROR "Problem when removing symlink \"$ENV{DESTDIR}${file}\"")
IF(NOT "${rm_retval}" STREQUAL 0) endif()
MESSAGE(FATAL_ERROR "Problem when removing symlink \"$ENV{DESTDIR}${file}\"") else()
ENDIF(NOT "${rm_retval}" STREQUAL 0) message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
ELSE(EXISTS "$ENV{DESTDIR}${file}") endif()
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") endforeach()
ENDIF(EXISTS "$ENV{DESTDIR}${file}")
ENDFOREACH(file)