<HTML>
<HEAD>
<TITLE>Configuring targets & software that isn't yet built</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'><BR>
<BR>
I have two targets (libssh2 and curl). Curl wants to know if libssh2 is installed during its configuration step.<BR>
<BR>
Of course it isn’t at that point.<BR>
<BR>
I tried a naïve approach – adding a variable that curl uses to see if libssh2 is available (HAVE_LIBSSH2_H) into the cache.<BR>
<BR>
SET( HAVE_LIBSSH2_H 1 CACHE INTERNAL "We build libssh2 so tell curl it (will be) here." )<BR>
<BR>
But surprisingly it broke all subsequent configuration searches.<BR>
<BR>
(curl is currently in a subdirectory of libssh2)<BR>
<BR>
<BR>
Is there a clean way to handle the scenario – configuring software that depends on another target’s output ?<BR>
<BR>
<BR>
Richard.</SPAN></FONT>
</BODY>
</HTML>