mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-03 03:58:04 +00:00
Merge pull request #21 from spektom/patch-1
Check for existing custom target: uninstall
This commit is contained in:
@@ -86,13 +86,15 @@ else()
|
|||||||
message(STATUS "Disabling tests")
|
message(STATUS "Disabling tests")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Confiugure the uninstall script
|
if(NOT TARGET uninstall)
|
||||||
configure_file(
|
# Confiugure the uninstall script
|
||||||
|
configure_file(
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
|
"${CMAKE_CURRENT_SOURCE_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 ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
||||||
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user