[CMake] Fwd: "--as-needed"

Evgeny Ratnikov ratnikov.ev at gmail.com
Sun Feb 3 06:49:37 EST 2008


---------- Forwarded message ----------
From: Evgeny Ratnikov <ratnikov.ev at gmail.com>
Date: 03.02.2008 11:00
Subject: "--as-needed"
To: cmake at cmake.org

Hi

When linking with option "--as-needed" the order of linkage is very
important. At first there must be object files and then libraries. When
linking with CMake's SET_TARGET_PROPERTIES/LINK_FLAGS I have libraries
first and then object files. When using TARGET_LINK_LIBRARIES the order
is reverse (and it is what I need).
Here is the question.
Is the linkage order a "special feature" of TARGET_LINK_LIBRARIES (There
is nothing about it in documentation)?
Are there any ways to specify linkage order? (Or may be are they in plans?)

(I'm using CMake-2.4-patch 6)

best regards, Evgeny Ratnikov


-- 
best regards, Evgeny Ratnikov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080203/3480456e/attachment.html


More information about the CMake mailing list