<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 02/20/2014 11:54 PM, Jack Smith
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACQJH240YNFHobDp39Hf=qDPHf2J1Yz94ULp+S1Ex-i8=gHagw@mail.gmail.com"
      type="cite">
      <div dir="ltr">I think I've have an epiphany.
        <div><br>
        </div>
        <div>I've been really struggling to understand how to get my
          build to work, and it seems the problem is with the configure
          step of cmake.</div>
        <div><br>
        </div>
        <div>I would like to see some mechanism whereby I can delay the
          completion of the configure step of a target until the build
          (and install into an install-prefix, I suspect) of its
          dependencies is complete. </div>
        <div><br>
        </div>
        <div>I think this would also require some automatic generation
          of FindXXX.cmake functionality to find that installed target
          in install-prefix.</div>
        <div><br>
        </div>
        <div>Is that possible ?</div>
        <div><br>
        </div>
        <div>As usual, what am I missing if not ?</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Jack</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    Hello Jack,<br>
    <br>
    At my project we also make use of some external packages that need
    to be crosscompiled before our application. I use the
    externalproject and manipulate the install step so that it installs
    the libraries in a known directory inside the binary directory. This
    way you can add that directory as hardcoded path during the
    configure phase of your main project. By depending on the external
    project, the libraries always get installed before the main project.
    <br>
    The find modules also make use of a setting called
    CMAKE_FIND_ROOT_PATH, which you can set in your toolchain file.
    Using this setting you can let the find modules search for Python in
    a specific location as well.<br>
    <br>
    This approach works for me (and I build a kernel in my project as
    well).<br>
    Note: the above works for our project as it is not distributed to a
    large number of users. If you want to distribute your project then
    your needs may differ.<br>
    <br>
    HTH,<br>
    Micha<br>
  </body>
</html>