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

Alexandre Feblot Alexandre.Feblot at thomsonreuters.com
Mon Mar 30 11:31:16 EDT 2009


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

Alexandre

 



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/20090330/48d1c16e/attachment.htm>


More information about the CMake mailing list