<div dir="ltr"><div>Hi Tobias,</div><div><br></div>That makes sense when the goal is the IDE driving the configuration. But I'm not trying to use this for the IDE to drive the configuration, I only want to query the build directory in order for the IDE to learn about it. AFAIK the only way to change either one of these properties is to delete the build and start over, so again, they should be fully-determined in a configured directory.<div><br></div><div>Isaiah</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 22, 2018 at 11:04 AM, Tobias Hunger <span dir="ltr"><<a href="mailto:tobias.hunger@gmail.com" target="_blank">tobias.hunger@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Isaiah,<br>
<br>
the idea was to make sure the IDE and cmake agree on the settings<br>
being used and to make it very explicit what is going to be used.<br>
<br>
Best Regards,<br>
Tobias<br>
<div><div class="h5"><br>
On Mon, Jan 22, 2018 at 4:54 PM, Isaiah Norton <<a href="mailto:isaiah.norton@gmail.com">isaiah.norton@gmail.com</a>> wrote:<br>
> I'd like to use cmake server with only a build directory argument (mostly in<br>
> order to query the cache), but receive an error in return:<br>
><br>
> ```<br>
>> cmake --version<br>
> cmake version 3.9.4<br>
><br>
>> cmake -E server --experimental --debug<br>
><br>
>> [== "CMake Server" ==[<br>
>> {"cookie":"zimtstern","type":"<wbr>handshake","protocolVersion":{<wbr>"major":1},<br>
>> "buildDirectory":"/opt/bld/<wbr>s5nj/Slicer-build"<br>
>> }<br>
>> ]== "CMake Server" ==]<br>
><br>
> [== "CMake Server" ==[<br>
> {"cookie":"zimtstern","<wbr>errorMessage":"Failed to activate protocol version:<br>
> \"CMAKE_HOME_DIRECTORY\" is set but incompatible with configured source<br>
> directory value.","inReplyTo":"<wbr>handshake","type":"error"}<br>
> ]== "CMake Server" ==]<br>
> ```<br>
><br>
> The docs example with source and generator arguments works -- but shouldn't<br>
> the build directory fully determine these options for an already-configured<br>
> build tree?<br>
><br>
> Thanks,<br>
> Isaiah<br>
><br>
><br>
</div></div>> --<br>
><br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
><br>
> Kitware offers various services to support the CMake community. For more<br>
> information on each offering, please visit:<br>
><br>
> CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="https://cmake.org/mailman/listinfo/cmake-developers" rel="noreferrer" target="_blank">https://cmake.org/mailman/<wbr>listinfo/cmake-developers</a><br>
><br>
</blockquote></div><br></div>