Index: /trunk/Mars/CMakeLists.txt
===================================================================
--- /trunk/Mars/CMakeLists.txt	(revision 19773)
+++ /trunk/Mars/CMakeLists.txt	(revision 19774)
@@ -270,10 +270,8 @@
         # install directory. In this case, the pcm files
         # are not where the library is where they should be
-    	ADD_CUSTOM_COMMAND(
-            OUTPUT  lib/${_CINT}_rdict.pcm
-            COMMAND ln -s ../dictionary/${_CINT}_rdict.pcm ${_CINT}_rdict.pcm || true
+    	ADD_CUSTOM_COMMAND(TARGET ${_CINT} POST_BUILD
+            COMMAND test -f ../dictionary/${CINT}_rdict.pcm && ln -s ../dictionary/${_CINT}_rdict.pcm ${_CINT}_rdict.pcm || true
             WORKING_DIRECTORY lib
-        VERBATIM)
-   	ADD_CUSTOM_TARGET(${_CINT}.p ALL DEPENDS lib/${_CINT}_rdict.pcm)
+            VERBATIM)
 
 ENDMACRO()
@@ -349,10 +347,8 @@
 # install directory. In this case, the pcm files
 # are not where the library is where they should be
-ADD_CUSTOM_COMMAND(
-    OUTPUT  lib/Core_rdict.pcm
-    COMMAND ln -s ../dictionary/Core_rdict.pcm Core_rdict.pcm || true
+ADD_CUSTOM_COMMAND(TARGET Core POST_BUILD
+    COMMAND test -f ../dictionary/Core_rdict.pcm && ln -s ../dictionary/Core_rdict.pcm Core_rdict.pcm || true
     WORKING_DIRECTORY lib
-VERBATIM)
-ADD_CUSTOM_TARGET(Core.p ALL DEPENDS lib/Core_rdict.pcm)
+    VERBATIM)
 
 
