/usr/share/cmake/Modules/ManageUninstall.cmake is in cmake-fedora 2.5.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # - Provide uninstall target.
# Use this module to provide uninstall target.
#
# Included Modules:
# - ManageMessage
# - ManageFile
#
# Define following targets
# uninstall: For uninstalling the package.
#
IF(DEFINED _MANAGE_UNINSTALL_CMAKE_)
RETURN()
ENDIF(DEFINED _MANAGE_UNINSTALL_CMAKE_)
SET(_MANAGE_UNINSTALL_CMAKE_ "DEFINED")
SET(CMAKE_UNINSTALL_IN_SEARCH_PATH
${CMAKE_MODULE_PATH} ${CMAKE_ROOT}/Modules ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/Modules
)
INCLUDE(ManageFile)
FIND_FILE_ERROR_HANDLING(CMAKE_UNINSTALL_IN
FIND_ARGS cmake_uninstall.cmake.in PATHS ${CMAKE_UNINSTALL_IN_SEARCH_PATH}
)
CONFIGURE_FILE("${CMAKE_UNINSTALL_IN}"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
)
|