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,6 +1534,7 @@ if (EVENT__DOXYGEN)
|
||||
endif()
|
||||
|
||||
|
||||
if (NOT TARGET uninstall)
|
||||
# Create the uninstall target.
|
||||
# https://gitlab.kitware.com/cmake/community/wikis/FAQ#can-i-do-make-uninstall-with-cmake
|
||||
configure_file(${PROJECT_SOURCE_DIR}/cmake/Uninstall.cmake.in
|
||||
@ -1542,7 +1543,7 @@ configure_file(${PROJECT_SOURCE_DIR}/cmake/Uninstall.cmake.in
|
||||
|
||||
add_custom_target(uninstall
|
||||
COMMAND ${CMAKE_COMMAND} -P ${PROJECT_BINARY_DIR}/Uninstall.cmake)
|
||||
|
||||
endif()
|
||||
|
||||
message(STATUS "")
|
||||
message(STATUS " ---( Libevent " ${EVENT_VERSION} " )---")
|
||||
|
Loading…
x
Reference in New Issue
Block a user