[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] target_link_libraries and flags issue with Visual Studio
From:       Louis-Paul CORDIER <lp.cordier () dynamixyz ! com>
Date:       2016-08-22 8:28:03
Message-ID: 03364b5d-214d-9c06-1a85-49e1dd7d7d82 () dynamixyz ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@dynamixyz.com <mailto:lp.cordier@dynamixyz.com>> wrote:
>
>     ase not t
>
>
>
>
>
> -- 
> Guillaume Dumont
> =========================
> dumont.guillaume@gmail.com <mailto:dumont.guillaume@gmail.com>


[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Dear Guillaume,</p>
    <p>Thank you for the suggestion. Unfortunately, it seems this option
      does not fill the linker property of the linking project.</p>
    <p>Otherwise, it seems that STATIC_LIBRARY_FLAGS is adding the link
      properties to the 'librarian':<br>
    </p>
    <p>set_target_properties(lib_project PROPERTIES STATIC_LIBRARY_FLAGS
      "-level='requireAdministrator' -uiAccess='false'")</p>
    <p>Any other suggestions? Thanks!<br>
    </p>
    <p>LP<br>
    </p>
    <div class="moz-cite-prefix">Le 08/08/2016 Ã  02:45, Guillaume Dumont
      a écrit  :<br>
    </div>
    <blockquote
cite="mid:CAKGHxZyEmqOmvhn1LtYChNO+eZQJ2yWvD8veEiSrXNZ4kW6qhA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">Hi,</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">You can use the LINK_FLAGS or
          LINK_FLAGS_&lt;CONFIG&gt; for this:</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra"><a moz-do-not-send="true"
            href="https://cmake.org/cmake/help/v3.6/prop_tgt/LINK_FLAGS.html">https://cmake.org/cmake/help/v3.6/prop_tgt/LINK_FLAGS.html</a></div>
  <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Have you tried that?</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Guillaume</div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Wed, Aug 3, 2016 at 7:02 AM,
            Louis-Paul CORDIER <span dir="ltr">&lt;<a
                moz-do-not-send="true"
                href="mailto:lp.cordier@dynamixyz.com" \
target="_blank">lp.cordier@dynamixyz.com</a>&gt;</span>  wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">ase
  not t</blockquote>
          </div>
          <br>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div class="gmail_signature" data-smartmail="gmail_signature">Guillaume
            Dumont<br>
            =========================<br>
            <a moz-do-not-send="true"
              href="mailto:dumont.guillaume@gmail.com" \
target="_blank">dumont.guillaume@gmail.com</a></div>  </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>



-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic