[CMake] target_link_libraries and flags issue with Visual Studio

Louis-Paul CORDIER lp.cordier at dynamixyz.com
Mon Aug 22 04:28:03 EDT 2016


Dear Guillaume,

Thank you for the suggestion. Unfortunately, it seems this option does 
not fill the linker property of the linking project.

Otherwise, it seems that STATIC_LIBRARY_FLAGS is adding the link 
properties to the 'librarian':

set_target_properties(lib_project PROPERTIES STATIC_LIBRARY_FLAGS 
"-level='requireAdministrator' -uiAccess='false'")

Any other suggestions? Thanks!

LP

Le 08/08/2016 à 02:45, Guillaume Dumont a écrit :
> Hi,
>
> You can use the LINK_FLAGS or LINK_FLAGS_<CONFIG> for this:
>
> https://cmake.org/cmake/help/v3.6/prop_tgt/LINK_FLAGS.html
>
> Have you tried that?
>
> Guillaume
>
> On Wed, Aug 3, 2016 at 7:02 AM, Louis-Paul CORDIER 
> <lp.cordier at dynamixyz.com <mailto:lp.cordier at dynamixyz.com>> wrote:
>
>     ase not t
>
>
>
>
>
> -- 
> Guillaume Dumont
> =========================
> dumont.guillaume at gmail.com <mailto:dumont.guillaume at gmail.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160822/8b17eb74/attachment.html>


More information about the CMake mailing list