<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="MSHTML 6.00.6000.16945" name="GENERATOR">
</head>
<body>
<div><span class="942462521-25012010"><font face="Arial" size="2">The current project that I am working on has multiple projects layered through subdirectories. The project was a conversion from traditional makefiles and when we do a cmake build from the root
of the source tree all is done correctly. The issue comes to when we try and build a single component from a out of source build directory (we are requiring out of source builds).</font></span></div>
<div><span class="942462521-25012010"><font face="Arial" size="2"></font></span> </div>
<div><span class="942462521-25012010"><font face="Arial" size="2">I have found a temp solution for example</font></span></div>
<div><span class="942462521-25012010"><font face="Arial" size="2"></font></span> </div>
<div><span class="942462521-25012010"><font face="Arial" size="2">/trunk/a</font></span></div>
<div><span class="942462521-25012010"><font face="Arial" size="2">/trunk/b</font></span></div>
<div><span class="942462521-25012010"><font face="Arial" size="2">/trunk/c</font></span></div>
<div><span class="942462521-25012010"><font face="Arial" size="2"></font></span> </div>
<div><span class="942462521-25012010"><font face="Arial" size="2"></font></span> </div>
<div><span class="942462521-25012010"><font face="Arial" size="2">a requires b and b requires c to build correctly. As long as they dont share dependencies, if I use add_subdirectory(src ${CMAKE_BINARY_DIR}/<project>) for each it works to build the deps as
needed. The issue is if both a and c require the another dep pulled in the same way. The error that comes up is through a policy error of CMP0013.
</font></span></div>
<div><span class="942462521-25012010"><font face="Arial" size="2"></font></span> </div>
<div><span class="942462521-25012010"><font face="Arial" size="2">Yes, I could disable the policy, but would prefer a more elegant solution for the issue. Any help would be appreciated.</font></span></div>
<div><span class="942462521-25012010"><font face="Arial" size="2"></font></span> </div>
<div><span class="942462521-25012010"><font face="Arial" size="2">--Philip</font></span></div>
<br>
<hr>
<font face="Arial" color="Black" size="3">This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message.
Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.<br>
</font>
</body>
</html>