On Wed, Jan 12, 2011 at 8:34 AM, Alexey Livshits <span dir="ltr"><<a href="mailto:livchits@web.de">livchits@web.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> Well, if you don't want any help fixing the real problem, then the<br>
> answer is simple: CMake can't possibly give you that information because<br>
> of DESTDIR.<br>
<br>
</div>Thank you.<br>
<div class="im"><br>
> So, go and fix your project.<br>
<br>
</div>I wish I could, but its not so simple. If you have an idea, just let me know.<br>
<br>
--<br>
BG,<br>
<font color="#888888">Alexey<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><div><br></div><div><br></div><div>Why can't you just set CMAKE_INSTALL_PREFIX to some path that you know and then reference that from your tests that run the installed version?</div>
<div><br></div><div><br></div><div>DESTDIR will never work on Windows with drive letters in the way:</div><div>(for example, if DESTDIR=D:\, and your install rules install some component to an absolute path, say C:\Program Files\Whatever, then the resulting attempt would go to "D:\C:\Pro..." which is obviously non-sensical.)</div>
<div><br></div><div>DESTDIR simply does not mix with Windows drive letters, so there always has to be another way to attack the problem when Windows is a consideration.</div><div><br></div><div>Since Windows is always a consideration for the vast majority of CMake-based projects, DESTDIR is typically avoided as a general technique (except as guarded by appropriate if(NOT WIN32) usage...)</div>
<div><br></div><div><br></div><div>Does that help?</div><div><br></div><div>David</div><div><br></div>