Rex Dieter 29094f
From 48f6e64d98e4aaa47f2a49faa5f3e821bc21fd6e Mon Sep 17 00:00:00 2001
Rex Dieter 29094f
From: Stephen Kelly <steveire@gmail.com>
Rex Dieter 29094f
Date: Sun, 19 Jul 2015 21:24:51 +0200
Rex Dieter 29094f
Subject: [PATCH 31/33] Don't attempt to add dependencies which do not exist.
Rex Dieter 29094f
Rex Dieter 29094f
---
Rex Dieter 29094f
 Automoc4Config.cmake | 4 +++-
Rex Dieter 29094f
 1 file changed, 3 insertions(+), 1 deletion(-)
Rex Dieter 29094f
Rex Dieter 29094f
diff --git a/Automoc4Config.cmake b/Automoc4Config.cmake
Rex Dieter 29094f
index d048686..8473d49 100644
Rex Dieter 29094f
--- a/Automoc4Config.cmake
Rex Dieter 29094f
+++ b/Automoc4Config.cmake
Rex Dieter 29094f
@@ -272,7 +272,9 @@ endmacro(_AUTOMOC4_KDE4_PRE_TARGET_HANDLING)
Rex Dieter 29094f
 
Rex Dieter 29094f
 
Rex Dieter 29094f
 macro(_AUTOMOC4_KDE4_POST_TARGET_HANDLING _target)
Rex Dieter 29094f
-   add_dependencies(${_target} "${_target}_automoc")
Rex Dieter 29094f
+  if (TARGET "${_target}_automoc")
Rex Dieter 29094f
+    add_dependencies(${_target} "${_target}_automoc")
Rex Dieter 29094f
+  endif()
Rex Dieter 29094f
 endmacro(_AUTOMOC4_KDE4_POST_TARGET_HANDLING)
Rex Dieter 29094f
 
Rex Dieter 29094f
 
Rex Dieter 29094f
-- 
Rex Dieter 29094f
2.4.3
Rex Dieter 29094f