mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Check for existing uninstall target before creating.
This commit is contained in:
parent
f30260153f
commit
9eee8ec0bb
|
@ -250,15 +250,17 @@ install(DIRECTORY ${XLNT_INCLUDE_DIR}/xlnt
|
||||||
install(FILES ${XLNT_ROOT_DIR}/docs/xlnt.3
|
install(FILES ${XLNT_ROOT_DIR}/docs/xlnt.3
|
||||||
DESTINATION ${MAN_DEST_DIR}/man3)
|
DESTINATION ${MAN_DEST_DIR}/man3)
|
||||||
|
|
||||||
# Configure uninstall
|
if(NOT TARGET uninstall)
|
||||||
configure_file("${XLNT_ROOT_DIR}/cmake/cmake_uninstall.cmake.in"
|
# Configure uninstall
|
||||||
|
configure_file("${XLNT_ROOT_DIR}/cmake/cmake_uninstall.cmake.in"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
||||||
IMMEDIATE @ONLY)
|
IMMEDIATE @ONLY)
|
||||||
|
|
||||||
# Add uninstall target
|
# Add uninstall target
|
||||||
add_custom_target(uninstall
|
add_custom_target(uninstall
|
||||||
COMMAND ${CMAKE_COMMAND} -P
|
COMMAND ${CMAKE_COMMAND} -P
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
# Set pkg-config variables
|
# Set pkg-config variables
|
||||||
|
|
Loading…
Reference in New Issue
Block a user