So you are trying to install your project into public location on CI server? If so, why?<div><br></div><div>Otherwise I don&#39;t see any reasons why install shouldn&#39;t work, if you&#39;re installing these libraries into app1&#39;s specific temporary build location.</div>
<div><br></div><div>And do you really need libA and libB installed? May be you should just skip install step?</div><div><br><div class="gmail_quote">On Thu, Aug 4, 2011 at 2:31 PM, Mathias Sulser <span dir="ltr">&lt;<a href="mailto:suls@suls.org">suls@suls.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello.<br>
<br>
This is my first post on this ML - so hi to everyone.<br>
I have been playing around with CMake for a while now and would love<br>
to introduce it to our projects. However, I wasn&#39;t able to answer the<br>
question below myself. Help appreciated.<br>
<br>
Short version:<br>
How do you layout internal project dependencies in CMake from multiple<br>
repositories? Is ExternalProject, a super build or something else the<br>
way to go?<br>
<br>
Long version:<br>
I have the following project/repo layout:<br>
<br>
app1.git<br>
  /src<br>
  /include<br>
  /test<br>
  CMakeLists.txt<br>
<br>
app2.git<br>
  ..<br>
<br>
libA.git<br>
  ..<br>
<br>
libB.git<br>
  ..<br>
<br>
<br>
I was thinking of using ExternalProject_Add in app1&#39;s CMakeLIsts.txt<br>
to declare it&#39;s dependencies on libA and libB. This works fine, it<br>
even allows pointing to a local git repo and branch on the dev boxes.<br>
<br>
Now, if I bring a central CI server (i.e. jenkins) into play, the<br>
INSTALL command required for ExternalProject screws things up for me.<br>
I can&#39;t have app1 depending on v1 of libA and app2 on v2 of libA as<br>
both get installed in the same location.<br>
<br>
Any ideas how to solve this? Am I misusing ExternalProject&#39;s<br>
functionality for internal dependencies?<br>
<br>
Cheers,<br>
Mathias<br>
_______________________________________________<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>
</blockquote></div><br></div>