<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Il 14/11/2012 13.01, Andreas Pakulat ha
      scritto:<br>
    </div>
    <blockquote
cite="mid:CAExHGmT75VkR+KN41wR3fhr-3M=N_pTuVAyKK6dSkzHHVCpmnQ@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi,

On Wed, Nov 14, 2012 at 12:34 PM, Andrea Galeazzi <a class="moz-txt-link-rfc2396E" href="mailto:galeazzi@korg.it">&lt;galeazzi@korg.it&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">I'm using cmake_policy(SET CMP0015 NEW) to link external libraries (I don't
have the sources of them) in order to avoid to specify the absolute path of
each library. So I wrote the following commands:
link_directories(path1 path2 ...)
target_link_libraries(${my_TARGET_NAME} lib1 lib2)

but when lib1 or lib2 changes, my_TARGET_NAME doesn't rebuild the
executable. On the other hand if I use the absolute path in
target_link_libraries (path1/lib1.a) everything works fine.
Is this behavior a bug of CMake or is not possible to detect this kind of
dependencies at all?
</pre>
      </blockquote>
      <pre wrap="">
That is not a bug in CMake. When you specify only library names CMake
cannot setup dependencies in the generated makefiles (or whatever
generator you use), since it has no clue where the library file is as
you leave the knowledge about that to the linker. So you either need
to specify the absolute path to lib1 and lib2 or trigger a clean build
of the target when the libs change.

Since it seems you already setup the paths to the libraries via
link_directories it should actually be rather easy for you to drop
that and simply use the absolute path in target_link_libraries I'd
say.

Andreas

</pre>
    </blockquote>
    You're definitely right.<br>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="ProgId" content="Word.Document">
      <meta name="Generator" content="Microsoft Word 11">
      <meta name="Originator" content="Microsoft Word 11">
      <link rel="File-List" href="korg_file/filelist.xml">
      <title>korg Firma</title>
      <!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>Nazzareno Bonanni</o:Author>
  <o:LastAuthor>Nazzareno Bonanni</o:LastAuthor>
  <o:Revision>2</o:Revision>
  <o:TotalTime>0</o:TotalTime>
  <o:Created>2010-03-15T15:07:00Z</o:Created>
  <o:LastSaved>2010-03-15T15:07:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>237</o:Words>
  <o:Characters>1353</o:Characters>
  <o:Company>KORG Italy S.p.A.</o:Company>
  <o:Lines>11</o:Lines>
  <o:Paragraphs>3</o:Paragraphs>
  <o:CharactersWithSpaces>1587</o:CharactersWithSpaces>
  <o:Version>11.9999</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:Zoom>150</w:Zoom>
  <w:GrammarState>Clean</w:GrammarState>
  <w:HyphenationZone>14</w:HyphenationZone>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
      <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Palatino Linotype";
        panose-1:2 4 5 2 5 5 5 3 3 4;
        mso-font-charset:0;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:-536870009 1073741843 0 0 415 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
h1
        {margin-top:0cm;
        margin-right:56.65pt;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        text-align:center;
        text-indent:70.9pt;
        mso-pagination:widow-orphan;
        page-break-after:avoid;
        mso-outline-level:1;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-weight:normal;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
        {mso-style-name:"Tabella normale";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
</style>
<![endif]-->
      <div class="Section1">
        <p class="MsoNormal"
          style="margin-top:0cm;margin-right:56.65pt;margin-bottom:
0cm;margin-left:2.0cm;margin-bottom:.0001pt;line-height:24.0pt"><b><span
              style="font-family:&quot;Palatino
              Linotype&quot;;color:#999999">KORG ITALY SPA<o:p></o:p></span></b></p>
        <p class="MsoNormal"
          style="margin-left:21.3pt;text-indent:35.4pt"><b><span
              style="font-size:9.0pt;font-family:&quot;Palatino
              Linotype&quot;;color:#999999">Via
              Cagiata, 85 &#8211; 60027 Osimo (AN) - ITALY<o:p></o:p></span></b></p>
        <p class="MsoNormal"
          style="margin-left:21.25pt;text-indent:35.45pt"><b><span
              style="font-size:9.0pt;font-family:&quot;Palatino
              Linotype&quot;;color:#999999">Ph.&nbsp;&nbsp;
              +39 071 727161 -<span class="GramE"> &nbsp;</span>Fax&nbsp;&nbsp; +39 071
              7231228<o:p></o:p></span></b></p>
        <p class="MsoNormal"
          style="margin-left:21.25pt;text-indent:35.45pt"><b><span
              style="font-size:9.0pt;font-family:&quot;Palatino
              Linotype&quot;;color:#999999">P.IVA e
              Cod. fiscale IT01460580424<o:p></o:p></span></b></p>
        <h1 style="margin-top:0cm;margin-right:2.0cm;margin-bottom:0cm;
margin-left:21.25pt;margin-bottom:.0001pt;text-align:left;text-indent:35.45pt"
          align="left"><b><span
              style="font-size:9.0pt;font-family:&quot;Palatino
              Linotype&quot;;color:#999999">Soggetta
              al controllo della Societ&agrave; KORG Inc. - Giappone<o:p></o:p></span></b></h1>
        <h1 style="margin-top:0cm;margin-right:2.0cm;margin-bottom:0cm;
margin-left:21.25pt;margin-bottom:.0001pt;text-align:left;text-indent:35.45pt"
          align="left"><b><span
              style="font-size:9.0pt;font-family:&quot;Palatino
              Linotype&quot;;color:#999999">Reg.
              Imprese di n. 212056/1996 del 23/12/<span class="GramE">96</span><o:p></o:p></span></b></h1>
        <h1 style="margin-top:0cm;margin-right:2.0cm;margin-bottom:0cm;
margin-left:21.25pt;margin-bottom:.0001pt;text-align:left;text-indent:35.45pt"
          align="left"><b><span
              style="font-size:9.0pt;font-family:&quot;Palatino
              Linotype&quot;;color:#999999">REA di Ancona
              al n. 133105 <span class="GramE">del</span> 06/12/96<o:p></o:p></span></b></h1>
        <h1 style="margin-top:0cm;margin-right:2.0cm;margin-bottom:0cm;
margin-left:21.25pt;margin-bottom:.0001pt;text-align:left;text-indent:35.45pt"
          align="left"><b><span
              style="font-size:9.0pt;font-family:&quot;Palatino
              Linotype&quot;;color:#999999">Capitale
              sociale Euro 814.253,16 &nbsp;i.v.<o:p></o:p></span></b></h1>
        <p class="MsoNormal"
          style="margin-right:-1.45pt;text-align:justify"><span
            style="font-size:7.5pt;font-family:Arial"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"
          style="margin-right:-1.45pt;text-align:justify"><span
            style="font-size:7.5pt;font-family:Arial"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"
          style="margin-right:-1.45pt;text-align:justify"><span
            style="font-size:7.5pt;font-family:Arial"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"
          style="margin-top:0cm;margin-right:-1.45pt;margin-bottom:
0cm;margin-left:54.0pt;margin-bottom:.0001pt;text-align:justify"><span
            style="font-size:7.5pt;font-family:Arial">Ai sensi del
            D.Lgs. 30 giugno 2003,
            n. 196, &#8220;Codice in materia di protezione dei dati personali&#8221;
            si precisa che le
            informazioni contenute nel messaggio sono riservate e
            destinate esclusivamente
            alla persona od organizzazione sopra indicata. A chi legge
            il presente avviso -
            se non &egrave; l'effettivo destinatario, o un dipendente, o la
            persona responsabile
            della consegna del messaggio - si notifica che sono proibite
            copie,
            distribuzione o divulgazione di quanto in esso contenuto
            (C.P. 616). Se questo
            messaggio Vi &egrave; pervenuto per errore, Vi preghiamo di
            informarci immediatamente,
            di non leggerlo e di distruggerlo. </span><span
            class="GramE"><span
              style="font-size:7.5pt;font-family:Arial;mso-ansi-language:EN-GB"
              lang="EN-GB">Grazie.</span></span><span
            style="font-size:7.5pt;font-family:Arial;mso-ansi-language:EN-GB"
            lang="EN-GB"><o:p></o:p></span></p>
        <p class="MsoNormal"
          style="margin-left:54.0pt;text-align:justify"><span
            style="font-size:7.5pt;font-family:Arial;mso-ansi-language:EN-GB"
            lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"
          style="margin-top:6.0pt;margin-right:0cm;margin-bottom:0cm;
          margin-left:54.0pt;margin-bottom:.0001pt;text-align:justify"><i><span
style="font-size:7.5pt;font-family:Arial;mso-ansi-language:EN-US"
              lang="EN-US">According
              to Legislative Decree n. 196 of 30 June 2003 about
              &#8220;Personal Data Protection
              Code&#8221; we point out that the information contained in this
              message may be
              privileged and confidential and is intended only for the
              use of the individual
              entity named above. If the reader of this message is not
              the intended
              recipient, or an employee or agent responsible for
              delivering this message to
              the intended recipient, you are hereby notified that any
              dissemination,
              distribution, or copying of this message is strictly
              prohibited. If you have
              received this message in error, please notify us
              immediately and destroy the
              original message. </span></i><i><span
              style="font-size:7.5pt;font-family:Arial">Thank
              you.<o:p></o:p></span></i></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">&nbsp;</p>
      </div>
    </div>
  </body>
</html>