Setted cmake "uninstall" target to exist in unix like operating systems only
This commit is contained in:
@@ -435,12 +435,15 @@ include_directories(${PROJECT_BINARY_DIR})
|
|||||||
|
|
||||||
add_subdirectory(doc)
|
add_subdirectory(doc)
|
||||||
|
|
||||||
# uninstall
|
# "uninstall" custom target for make generators in unix like operating systems
|
||||||
if(NOT TARGET uninstall)
|
# and if that target is not present
|
||||||
|
if (CMAKE_GENERATOR STREQUAL "Unix Makefiles")
|
||||||
|
if(NOT TARGET uninstall)
|
||||||
add_custom_target(uninstall
|
add_custom_target(uninstall
|
||||||
COMMAND cat ${PROJECT_BINARY_DIR}/install_manifest.txt | xargs rm
|
COMMAND cat ${PROJECT_BINARY_DIR}/install_manifest.txt | xargs rm
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
endif()
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user