mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Don't clobber higher-level uninstall targets.
This commit is contained in:
parent
673b42d8da
commit
7268fc18b4
@ -155,11 +155,14 @@ install(FILES COPYING.txt readme.html
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Uninstall operation
|
||||
# Don't generate this target if a higher-level project already has
|
||||
#--------------------------------------------------------------------
|
||||
if(NOT TARGET uninstall)
|
||||
configure_file(${GLFW_SOURCE_DIR}/cmake_uninstall.cmake.in
|
||||
${GLFW_BINARY_DIR}/cmake_uninstall.cmake IMMEDIATE @ONLY)
|
||||
|
||||
add_custom_target(uninstall
|
||||
${CMAKE_COMMAND} -P
|
||||
${GLFW_BINARY_DIR}/cmake_uninstall.cmake)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user