I don't think so.<br>See:<br><span style="color:#808000">function</span>(add_msvc_precompiled_header<span style="color:#c0c0c0"> </span>target)
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span><span style="color:#808000">set</span>(pchBinaryFile<span style="color:#c0c0c0"> </span><span style="color:#800000">${CMAKE_CURRENT_BINARY_DIR}</span>/<span style="color:#800000">${target}</span>_pch.pch)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><b><span style="color:#c0c0c0"> </span><span style="color:#808000">set_source_files_properties</span>(${${<span style="color:#800000">${target}</span>_PCH_SOURCE_VAR}}<span style="color:#c0c0c0"> </span>PROPERTIES</b></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><b><span style="color:#c0c0c0"> </span>COMPILE_FLAGS<span style="color:#c0c0c0"> </span><span style="color:#008000">"/Yc\"${</span><span style="color:#800000">${target}</span><span style="color:#008000">_PCH_HEADER_FILE}\"</span><span style="color:#c0c0c0"> </span><span style="color:#008000">/Fp\"</span><span style="color:#800000">${pchBinaryFile}</span><span style="color:#008000">\""</span></b></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><b><span style="color:#c0c0c0"> </span>OBJECT_OUTPUTS<span style="color:#c0c0c0"> </span><span style="color:#800000">${pchBinaryFile}</span></b></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><b><span style="color:#c0c0c0"> </span>)</b></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span><span style="color:#808000">message</span>(STATUS<span style="color:#c0c0c0"> </span><span style="color:#008000">"[</span><span style="color:#800000">${target}</span><span style="color:#008000">]</span><span style="color:#c0c0c0"> </span><span style="color:#008000">Precompiled</span><span style="color:#c0c0c0"> </span><span style="color:#008000">binary</span><span style="color:#c0c0c0"> </span><span style="color:#008000">is</span><span style="color:#c0c0c0"> </span><span style="color:#008000">\"</span><span style="color:#800000">${pchBinaryFile}</span><span style="color:#008000">\""</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span><span style="color:#808000">set</span>(<span style="color:#800000">${target}</span>_PCH_BINARY_FILE<span style="color:#c0c0c0"> </span><span style="color:#800000">${pchBinaryFile}</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span>CACHE<span style="color:#c0c0c0"> </span>INTERNAL<span style="color:#c0c0c0"> </span><span style="color:#008000">"Precompiled</span><span style="color:#c0c0c0"> </span><span style="color:#008000">binary</span><span style="color:#c0c0c0"> </span><span style="color:#008000">file"</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">endfunction</span>()</pre><br><br><div class="gmail_quote">2012/9/25 Peter Kümmel <span dir="ltr"><<a href="mailto:syntheticpp@gmx.net" target="_blank">syntheticpp@gmx.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Maybe by "accident". Which cmake command do you use to add the dependency?</blockquote></div><br><br clear="all">
<br>-- <br><div><span style="color:rgb(255,0,0)"><u><i>Please don't ask where I come from, It's a shame!</i></u></span><br>Best Regards</div>
<div>Yuchen</div><div></div><br>
<div></div>