From 44411f123ae9e5dffa37be08f91b0975b1d85f77 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 12 Feb 2014 10:33:21 +0100 Subject: [PATCH] core: fix cmake warning CMP0007 on "make uninstall" (bug #41528) --- ChangeLog | 1 + cmake/cmake_uninstall.cmake.in | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0d2aa9216..e84373d71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] == Version 0.4.4 (under dev!) +* core: fix cmake warning CMP0007 on "make uninstall" (bug #41528) * core: add signals "key_combo_{default|search|cursor}" * core: display a warning in case of inconsistency between the options weechat.look.save_{config|layout}_on_exit diff --git a/cmake/cmake_uninstall.cmake.in b/cmake/cmake_uninstall.cmake.in index 4d6f1d4f7..60a241cf5 100644 --- a/cmake/cmake_uninstall.cmake.in +++ b/cmake/cmake_uninstall.cmake.in @@ -23,6 +23,7 @@ ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) STRING(REGEX REPLACE "\n" ";" files "${files}") +STRING(REGEX REPLACE ";$" "" files "${files}") LIST(REVERSE files) FOREACH(file ${files}) MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")