<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 11-May-16 16:58, Steve Lorimer
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAE-NPOicuFFs18vcUv50nKmi0GT-CRjNoSQziSFg81C5EZC3HQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">I've recently changed over from using boost-build (<a
          moz-do-not-send="true" href="http://www.boost.org/build/"><a class="moz-txt-link-freetext" href="http://www.boost.org/build/">http://www.boost.org/build/</a></a>)
        to cmake.
        <div><br>
        </div>
        <div>Boost build builds in-source.<br>
        </div>
        <div><br>
        </div>
        <div>I've become quite used to building and searching etc from
          the source root</div>
        <div><br>
        </div>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <div><font face="monospace, monospace">~/src $ b2 module</font></div>
          <div><font face="monospace, monospace">~/src $ git grep foo</font></div>
        </blockquote>
        <div><br>
        </div>
        <div>This work flow has been broken because I'm not using out of
          source builds</div>
        <div><br>
        </div>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <div><font face="monospace, monospace">~/src/build $ make
              module</font></div>
          <div><font face="monospace, monospace">~/src/build $ git
              grep... dang it! <ctrl-c></font></div>
          <div><font face="monospace, monospace">~/src/build $ cd ..</font></div>
          <div><font face="monospace, monospace">~/src $ git grep foo</font></div>
          <div>
            <div><font face="monospace, monospace">~/src $ make modu...
                dang it! <ctrl-c></font></div>
          </div>
          <div>
            <div><font face="monospace, monospace">~/src $ cd build</font></div>
          </div>
          <div>
            <div><font face="monospace, monospace">~/src/build $ make
                module</font></div>
          </div>
          <div><font face="monospace, monospace"><br>
            </font></div>
        </blockquote>
        <div>I can't be the only one who wants to have the benefit of
          out of source builds and be able to build from in-source.<br>
        </div>
      </div>
    </blockquote>
    Will `-C` help?<br>
    <br>
    ~/src $ make -C build module<br>
    <br>
    or in cross-platform fashion:<br>
    <br>
    ~/src $ cmake --build build<br>
    ~/src $ cmake --build build --target foo --config Debug<br>
    <br>
    Ruslo<br>
    <blockquote
cite="mid:CAE-NPOicuFFs18vcUv50nKmi0GT-CRjNoSQziSFg81C5EZC3HQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>I imagine it would be relatively simple to create a
          makefile which navigates to a known build directory (eg: build
          or debug or...), executes make there, and then changes
          directory back to where it was called from.</div>
        <div><br>
        </div>
        <div>Before I do just this, I thought it better to try leverage
          the open source community - hence asking the question.</div>
        <div><br>
        </div>
        <div>Does anyone have a script or makefile which does just this?</div>
        <div><br>
        </div>
        <div>TIA</div>
        <div>Steve</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>