Hi,<br><br>I&#39;m a bit unclear as to how CMake determines the order of what to build first. In one project I have:<br><br>add_library( libA ... )<br>add_executable( ExecA ... )<br>target_link_libraries( ExecA libA )<br><br>
the build order is: libA and then ExecA. <br><br>Yet in another project i have: <br><br>add_library( libB ... )<br>
add_executable( ExecB ... )<br>
target_link_libraries( ExecB libB )<br><br>but the build order now is: ExecB, libB <br><br>I&#39;m getting link errors because libB doesn&#39;t exist yet. If I comment out the ExecB stuff, it builds libB. <br><br>Can someone give me a clue on what criteria CMake is using to determine what builds first?<br>
<br>Thanks,<br>-Hai<br>