<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Without cycling dependencies you can do something like this:</p>
    <p><i>add_executable(test_object_lib_nesting main.cpp)</i><i><br>
      </i><i><br>
      </i><i>target_link_libraries(test_object_lib_nesting</i><i><br>
      </i><i>    second_object_lib</i><i><br>
      </i><i>    first_object_lib</i><i><br>
      </i><i>)</i></p>
    <blockquote type="cite"
cite="mid:CAFJ6FuFw2vGYCLoh-mV6YUAf1hZrz-fUT8eMh9iHnrd1vZZRyA@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">
The problem I have that the linker command line will have only the
second.cpp.o for linking the first.cpp.o will not be added as link
object to the exe. Causing missing symbols on exe linkage.

How to transitively resolve and link "nested" Object library targets ?.
</pre>
    </blockquote>
  </body>
</html>