aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake/cmake_uninstall.cmake.in
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-08-01 18:49:22 -0700
committerMartin Braun <martin.braun@ettus.com>2016-08-01 18:49:22 -0700
commit3df0f6e9e4b2784c7c23a566a34391b9629d32c1 (patch)
tree3b050febb23a25ea5279b21628684b1ff92ee970 /host/cmake/cmake_uninstall.cmake.in
parent031839052be29825e4d28b341dfc98abc9d1a903 (diff)
parent4503c7e6287e4204af946c9aa6e669f76c9b8289 (diff)
downloaduhd-3df0f6e9e4b2784c7c23a566a34391b9629d32c1.tar.gz
uhd-3df0f6e9e4b2784c7c23a566a34391b9629d32c1.tar.bz2
uhd-3df0f6e9e4b2784c7c23a566a34391b9629d32c1.zip
Merge branch 'maint'
Conflicts: host/lib/usrp/dboard/db_wbx_version2.cpp host/lib/usrp/dboard/db_wbx_version3.cpp
Diffstat (limited to 'host/cmake/cmake_uninstall.cmake.in')
-rw-r--r--host/cmake/cmake_uninstall.cmake.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/host/cmake/cmake_uninstall.cmake.in b/host/cmake/cmake_uninstall.cmake.in
index 6031a6ca9..b4d731a14 100644
--- a/host/cmake/cmake_uninstall.cmake.in
+++ b/host/cmake/cmake_uninstall.cmake.in
@@ -17,6 +17,17 @@ FOREACH(file ${files})
IF(NOT "${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
ENDIF(NOT "${rm_retval}" STREQUAL 0)
+ ELSEIF(NOT "${CMAKE_VERSION}" STRLESS "2.8.1")
+ IF(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 \"$ENV{DESTDIR}${file}\"")
+ ENDIF(NOT "${rm_retval}" STREQUAL 0)
+ ENDIF(IS_SYMLINK "$ENV{DESTDIR}${file}")
ELSE(EXISTS "$ENV{DESTDIR}${file}")
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
ENDIF(EXISTS "$ENV{DESTDIR}${file}")