[CMake] How to surround an imported lib with extra flags on link?

Alexandre Feblot Alexandre.Feblot at thomsonreuters.com
Tue Mar 31 05:18:08 EDT 2009


Hi again,

Would anybody have a solution for this?

Thanks

Alexandre



________________________________

Sent: Monday, 30 March 2009 17:31



Hi,

 

I import some libs like this:

 

        add_library(${name} ${type} IMPORTED)

        set_target_properties(${name} PROPERTIES

            IMPORTED_LINK_INTERFACE_LIBRARIES "${other_imported_libs}"

            IMPORTED_LOCATION "${file}"

        )

 

At the end, I link an executable which gets all required libs thanks to
the imported interface property.

 

Now, I need one of these imported libs to be surrouned like this: -z
allextract ${the_lib} -z defaultextract

 

I find no working way to add these flags in the
IMPORTED_LINK_INTERFACE_LIBRARIES properties to get them properly at
link time. What solution do I have?

 

 

Thanks 



This email was sent to you by Thomson Reuters, the global news and information company.
Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090331/17a92955/attachment-0001.htm>


More information about the CMake mailing list