<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I don't know what sorts of files those are; they don't exist but
they get created, they're not tracked, and not installed...</p>
<p>They sounds like a build product, which is a target, (even it
it's just part of a product, it's still a target)</p>
<p>Exactly, these are mostly BYPRODUCTS, but also OUTPUT of build
commands, i.e. targets. <br>
</p>
<p><br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAA2GJqU7Hd9Lo-XvaRmGXMhXJaaqV-BQSUXwzvs+nzSvpR_jSQ@mail.gmail.com">
<div dir="ltr">
<div class="gmail_quote">
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p> </p>
<p>Another thing I noticed is that my CMAKE_GENERATOR are
now buried in subfolders. To change that I set PREFIX
"${CMAKE_BINARY_DIR}/workspaces". Now all external
projects are using the same prefix and are therefore
generated into the same directory 'workspaces'. </p>
</div>
</blockquote>
<div>right ? <br>
</div>
</div>
</div>
</blockquote>
<p>Except for my generators, and I think I wasn't clear enough about
this part. I am using -G"Eclipse 2 - Unix Makefiles" for each
external project. Note that this leaves me with a Makefile for the
"super build" containing <b>all</b> targets of all projects. It <b>additionally</b>
creates a Makefile for each external project individually. So I
can do stuff like:</p>
<p><i><b>cd build/ && make</b> # </i>to build the entire
project or</p>
<p><b><i>cd build/workspaces/src/ext1-build/ && make</i></b>
# to build a specific external project, <i>ext1.</i></p>
<p><br>
</p>
<p>This is what I am after -> a multi-workspace super build. By
workspace here I mean an eclipse workspace, the terminology does
not exist in CMake. Note that each project has its own root binary
path, meaning that</p>
<p>${CMAKE_BINARY_DIR} = build # for super build</p>
<p>and</p>
<p>${CMAKE_BINARY_DIR} = build/workspaces/src/ext1-build # for
external project ext1</p>
<p><br>
</p>
<p>${CMAKE_CURRENT_BINARY_DIR} is then relative to any of either
${CMAKE_BINARY_DIR}'s. <br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>