[CMake] add_library/add_executable ordering
Hai Nguyen
chaoticbob at gmail.com
Wed Jun 24 18:30:33 EDT 2009
Hi,
I'm a bit unclear as to how CMake determines the order of what to build
first. In one project I have:
add_library( libA ... )
add_executable( ExecA ... )
target_link_libraries( ExecA libA )
the build order is: libA and then ExecA.
Yet in another project i have:
add_library( libB ... )
add_executable( ExecB ... )
target_link_libraries( ExecB libB )
but the build order now is: ExecB, libB
I'm getting link errors because libB doesn't exist yet. If I comment out the
ExecB stuff, it builds libB.
Can someone give me a clue on what criteria CMake is using to determine what
builds first?
Thanks,
-Hai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090624/c1280b2f/attachment.htm>
More information about the CMake
mailing list