<div dir="ltr">I&#39;ve had this working and I don&#39;t *THINK* I changed anything that would cause it to fail now but I&#39;m not completely sure.<div><br></div><div>I have a project I converted over to cmake from automake which requires wxWidgets 3.0 (or the 2.9 devel branch). Although it just released I still want to maintain the ability to build it within the project itself for distro&#39;s that are slow to adopt it (on linux) or windows/mac as well.</div>
<div><br></div><div>Because wxWidgets uses a custom script to get compiler flags and includes I have to &quot;bootstrap&quot; the build such that the first time you run cmake/make it builds wxWidgets and the second time it builds the project. To that end I had the follow strategy working:</div>
<div><br></div><div><div>#</div><div># Pull in external wxWidgets target if performing static build.</div><div>#</div><div>if(BOOTSTRAP_WXWIDGETS)</div><div>    include(cmake/BuildWxWidgets.cmake)</div><div>endif(BOOTSTRAP_WXWIDGETS)</div>
<div><br></div><div>#</div><div># Perform bootstrap build of wxWidgets</div><div>#</div><div>if(BOOTSTRAP_WXWIDGETS AND NOT TARGET wxWidgets)</div><div>    message(STATUS &quot;Will perform bootstrap build of wxWidgets.</div>
<div>   After make step completes, re-run cmake and make again to perform FreeDV build.&quot;)</div><div>#</div><div># Continue normal build if not bootstrapping wxWidgets or already built it.</div><div>#</div><div>else(BOOTSTRAP_WXWIDGETS AND NOT TARGET wxWidgets)</div>
</div><div><br></div><div>&lt;continue normal build&gt;</div><div><br></div><div>endif(BOOTSTRAP_WXWIDGETS AND NOT TARGET wxWidgets)<br></div><div>---</div><div><br></div><div>Even though I can verify that BOOTSTRAP_WXWIDGETS is true, it&#39;s failing the conditional and I can only assume it has to do with the target checking.</div>
<div><br></div><div>Any ideas?</div><div><br></div><div>Thanks,</div><div>Richard</div></div>