mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 01:36:23 -04:00
Added uninstall target check to cmakelists
(cherry picked from commit f0e79bafd8823aedf535e9b344d4cf9a4f9747e5)
This commit is contained in:
parent
921bdcdd81
commit
3f1fb1f9ab
@ -1534,15 +1534,16 @@ if (EVENT__DOXYGEN)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# Create the uninstall target.
|
if (NOT TARGET uninstall)
|
||||||
# https://gitlab.kitware.com/cmake/community/wikis/FAQ#can-i-do-make-uninstall-with-cmake
|
# Create the uninstall target.
|
||||||
configure_file(${PROJECT_SOURCE_DIR}/cmake/Uninstall.cmake.in
|
# https://gitlab.kitware.com/cmake/community/wikis/FAQ#can-i-do-make-uninstall-with-cmake
|
||||||
${PROJECT_BINARY_DIR}/Uninstall.cmake
|
configure_file(${PROJECT_SOURCE_DIR}/cmake/Uninstall.cmake.in
|
||||||
@ONLY)
|
${PROJECT_BINARY_DIR}/Uninstall.cmake
|
||||||
|
@ONLY)
|
||||||
add_custom_target(uninstall
|
|
||||||
COMMAND ${CMAKE_COMMAND} -P ${PROJECT_BINARY_DIR}/Uninstall.cmake)
|
|
||||||
|
|
||||||
|
add_custom_target(uninstall
|
||||||
|
COMMAND ${CMAKE_COMMAND} -P ${PROJECT_BINARY_DIR}/Uninstall.cmake)
|
||||||
|
endif()
|
||||||
|
|
||||||
message(STATUS "")
|
message(STATUS "")
|
||||||
message(STATUS " ---( Libevent " ${EVENT_VERSION} " )---")
|
message(STATUS " ---( Libevent " ${EVENT_VERSION} " )---")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user