From 46e74c93912c2058bbb125de50ed1dfab837d01d Mon Sep 17 00:00:00 2001 From: Peter Petrovich Date: Wed, 5 Aug 2015 08:45:27 +0300 Subject: [PATCH] Install target check fix --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bbaa3aa3..4bde0d0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,5 +127,7 @@ configure_file( "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" IMMEDIATE @ONLY) -add_custom_target(uninstall +if (NOT TARGET uninstall) + add_custom_target(uninstall COMMAND "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") +endif() \ No newline at end of file