Index: /trunk/Mars/CMakeLists.txt
===================================================================
--- /trunk/Mars/CMakeLists.txt	(revision 19774)
+++ /trunk/Mars/CMakeLists.txt	(revision 19775)
@@ -270,8 +270,10 @@
         # install directory. In this case, the pcm files
         # are not where the library is where they should be
-    	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)
+        IF(TARGET ${_CINT})
+       	    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)
+        ENDIF()
 
 ENDMACRO()
@@ -347,8 +349,10 @@
 # install directory. In this case, the pcm files
 # are not where the library is where they should be
-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)
+IF(TARGET Core)
+    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)
+ENDIF()
 
 
