]> granicus.if.org Git - taglib/commitdiff
Install target check fix
authorPeter Petrovich <petro@petro.ws>
Wed, 5 Aug 2015 05:45:27 +0000 (08:45 +0300)
committerPeter Petrovich <petro@petro.ws>
Wed, 5 Aug 2015 05:45:27 +0000 (08:45 +0300)
CMakeLists.txt

index bbaa3aa3d608e653bc4fcfc54077e48e5f5158b9..4bde0d0af869f8e87dc4a2a2fc8a6c87350fbf09 100644 (file)
@@ -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