<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">
<div id=":179">OK, Core_pch.pch is listed, but only as "Order-only dependency": <a href="http://martine.github.com/ninja/manual.html#ref_dependencies" target="_blank">http://martine.github.com/<u></u>ninja/manual.html#ref_<u></u>dependencies</a><br>
<br>
Does it work when you make the pch a "Implicit dependency": change '||' to '|'?<br></div></blockquote><div>Yes, Change "||" to "|", it works!<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":179">
<br>
This could be fixed in you pch macro by making each source file depend on the pch file.<br>
Or is this already done? Then you have found a bug in the ninja generator.</div></blockquote><div>Yes, It is done. NMake Makefiles and Unix Makefiles generator both works.<br>Here is NMake build logs:<br><br><b>First build:</b><br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">D:\qpSOFT\Projects\QtCreator\ok>nmake<br><br>Microsoft (R) Program Maintenance Utility Version 10.00.40219.01<br>
Copyright (C) Microsoft Corporation. All rights reserved.<br><br>Scanning dependencies of target Core<br>[ 50%] Building CXX object src/plugins/coreplugin/CMakeFiles/Core.dir/Core_pch.cpp.obj<br>Core_pch.cpp<br>[100%] Building CXX object src/plugins/coreplugin/CMakeFiles/Core.dir/lib.cpp.obj<br>
lib.cpp<br>Linking CXX shared library ..\..\..\lib\qtcreator\plugins\Nokia\Core.dll<br>[100%] Built target Core<br><br></blockquote><div><br><b>No changes, Build again :</b><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
D:\qpSOFT\Projects\QtCreator\ok>nmake<br><br>Microsoft (R) Program Maintenance Utility Version 10.00.40219.01<br>Copyright (C) Microsoft Corporation. All rights reserved.<br><br>[100%] Built target Core<br><br></blockquote>
<div><br><b>Change Core_pch.cpp (Add #include <iostream>):</b><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">D:\qpSOFT\Projects\QtCreator\ok>nmake<br>
<br>Microsoft (R) Program Maintenance Utility Version 10.00.40219.01<br>Copyright (C) Microsoft Corporation. All rights reserved.<br><br>Scanning dependencies of target Core<br>[ 50%] Building CXX object src/plugins/coreplugin/CMakeFiles/Core.dir/Core_pch.cpp.obj<br>
Core_pch.cpp<br>[100%] Building CXX object src/plugins/coreplugin/CMakeFiles/Core.dir/lib.cpp.obj<br>lib.cpp<br>Linking CXX shared library ..\..\..\lib\qtcreator\plugins\Nokia\Core.dll<br>[100%] Built target Core <br></blockquote>
</div></div><br>But I don't know It's a cmake bug? or a ninja bug?<br><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>