mirror of
https://github.com/json-c/json-c.git
synced 2026-04-11 08:19:08 +08:00
Only define an "uninstall" target if it's not already defined (e.g. by projects that include json-c)
This commit is contained in:
@@ -436,10 +436,12 @@ include_directories(${PROJECT_BINARY_DIR})
|
|||||||
add_subdirectory(doc)
|
add_subdirectory(doc)
|
||||||
|
|
||||||
# uninstall
|
# uninstall
|
||||||
add_custom_target(uninstall
|
if(NOT TARGET uninstall)
|
||||||
COMMAND cat ${PROJECT_BINARY_DIR}/install_manifest.txt | xargs rm
|
add_custom_target(uninstall
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
COMMAND cat ${PROJECT_BINARY_DIR}/install_manifest.txt | xargs rm
|
||||||
)
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# XXX for a normal full distribution we'll need to figure out
|
# XXX for a normal full distribution we'll need to figure out
|
||||||
# XXX how to build both shared and static libraries.
|
# XXX how to build both shared and static libraries.
|
||||||
|
|||||||
Reference in New Issue
Block a user