<div dir="ltr"><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">> It works with Ninja for me.  Are you building CMake out-of-source?</span><br></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">Yes. </span></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">The complete list of commands I used is (from a clean build dir):</span></div><div><font color="#212121" face="helvetica neue, helvetica, arial, sans-serif">cmake ..\CMake -G Ninja -DCMAKE_BUILD_TYPE=Debug</font><br></div><div><font color="#212121" face="helvetica neue, helvetica, arial, sans-serif">ninja</font></div><div><font color="#212121" face="helvetica neue, helvetica, arial, sans-serif">ctest -V -R CheckSourceTree</font></div><div><br></div><div>In a MSVC2012 x64 command prompt.</div><div>I used the installed CMake to both configure and test.</div><div><br></div><div>the last message is :</div><div><div> CMake Error at CheckSourceTreeTest.cmake:355 (message):</div><div>   test fails: local source tree non-additions: use git add before committing,</div></div><div>   or remove the files from the source tree<br></div><div><br></div><div><br></div>><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">I don't understand what you mean.</span><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif"><br></span></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">Like most CMake tests, the SimpleInstall test contains a CMakeLists, so the ctest process runs cmake and builds the test.</span></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">This test has a </span><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">custom_command which does 'cmake --build', so when you run the test, the build tool will call 'camke --build', which starts the build tool again, in the same folder hierarchy.</span></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif"><br></span></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">This is not supported by fastbuild. Since it is highly paralellized, it uses a lock file to check if an instance is already running, in order to avoid all the common problems you would encounter by having two instances doing read/writes to its local database (for instance for its caching mechanism).</span></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif"><br></span></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">Thus I am wondering how I can get this test to pass.</span></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif"><br></span></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr">Le lun. 10 oct. 2016 à 19:13, Brad King <<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/10/2016 09:39 AM, Charles Huet wrote:<br class="gmail_msg">
> * the test CMake.CheckSourceTree does not work with Fastbuild,<br class="gmail_msg">
>   but I could not get it to work with Ninja either, maybe I<br class="gmail_msg">
>   have an environment problem ?<br class="gmail_msg">
<br class="gmail_msg">
It works with Ninja for me.  Are you building CMake out-of-source?<br class="gmail_msg">
<br class="gmail_msg">
> * the test SimpleInstall requires the build tool to be able to<br class="gmail_msg">
>   run multiple instances in the same hierarchy, which Fastbuild<br class="gmail_msg">
>   does not support.<br class="gmail_msg">
<br class="gmail_msg">
I don't understand what you mean.<br class="gmail_msg">
<br class="gmail_msg">
> * It seems SimpleInstall-Stage2 depends upon SimpleInstall,<br class="gmail_msg">
>   is this right ?<br class="gmail_msg">
<br class="gmail_msg">
Yes.<br class="gmail_msg">
<br class="gmail_msg">
-Brad<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>