mirror of
https://github.com/gwm17/glfw.git
synced 2025-04-01 15:18:49 -04:00
Merge pull request #19 from belkiss/master
Added removal of symlinks during uninstallation.
This commit is contained in:
commit
2cedd8f059
|
@ -15,6 +15,15 @@ FOREACH(file ${files})
|
||||||
IF(NOT "${rm_retval}" STREQUAL 0)
|
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(NOT "${rm_retval}" STREQUAL 0)
|
||||||
|
ELSEIF(IS_SYMLINK "$ENV{DESTDIR}${file}")
|
||||||
|
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 symlink \"$ENV{DESTDIR}${file}\"")
|
||||||
|
ENDIF(NOT "${rm_retval}" STREQUAL 0)
|
||||||
ELSE(EXISTS "$ENV{DESTDIR}${file}")
|
ELSE(EXISTS "$ENV{DESTDIR}${file}")
|
||||||
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
|
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
|
||||||
ENDIF(EXISTS "$ENV{DESTDIR}${file}")
|
ENDIF(EXISTS "$ENV{DESTDIR}${file}")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user