From a55545279ba88202d7e30f40547d8126fe4d949b Mon Sep 17 00:00:00 2001 From: Rossen Apostolov Date: Mon, 23 Jun 2014 14:40:57 +0200 Subject: [PATCH] Remove install_manifest.txt during make clean. install_manifest.txt is generated in the build tree during install. If installation is done as root, subsequent 'make install' as normal user will fail due to permissions issue to overwrite the file. Change-Id: Ie29b05db3a6b4f7e07ecd88f02e61c92a99ff003 --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99583b726a..3d3c3f6791 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -907,15 +907,16 @@ set(GMX_GPU_DETECTION_DONE TRUE CACHE INTERNAL "Whether GPU detection has alread ####################### ## uninstall target ####################### - CONFIGURE_FILE( - "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in" - "${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake" - IMMEDIATE @ONLY) +CONFIGURE_FILE( "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in" + "${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake" + IMMEDIATE @ONLY) ########################### ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake") ########################### +set_directory_properties(PROPERTIES + ADDITIONAL_MAKE_CLEAN_FILES "install_manifest.txt") ######################################################################## # Manual # -- 2.22.0