No subject


Tue Jun 23 12:19:35 EDT 2009


    # Use the raw_item as the list entries returned by this function. Use
the
    # gp_resolve_item function to resolve it to an actual full path file if
    # necessary.
    #
    set(item "${raw_item}")


HTH,
David


On Fri, Jul 17, 2009 at 6:40 PM, Clinton Stimpson <clinton at elemtech.com>wrote:

>
> Is get_prerequisites() supposed to return absolute paths all the time?
> For example, on the Mac, I've got some frameworks in /Library/Frameworks
> that I may want to copy if they might not exist on other Macs.  When I call
> get_prerequisites(), getting "foo.framwork/" instead of
> "/Library/Frameworks/foo.framework/"
>
> Clint
>
> David Cole wrote:
>
>> So I would love to see a corollary to BundleUtilities.cmake for Mac on
>> Windows and Linux, too.
>>
>> Using GetPrerequisites to gather the set of dependent files is obviously
>> the first step.
>>
>> Then, on Windows, a function that installs all the dependent dlls to the
>> same location as the executable would be awesome.
>>
>> On Linux, I guess you would have to make sure everything you depend on is
>> either already installed in its install path, or aware of your install path,
>> or uses LD_LIBRARY_PATH -- the issues here are the ones I am least familiar
>> with (compared to Windows and Mac anyhow).
>>
>> I don't think this should ever be fully automated because of licensing and
>> coyright issues. Technically, it is easy to gather the set of required files
>> to make something work on a practical level. The issue will be: "hey, you're
>> not allowed to copy *that* dll" because of such and such non-technical
>> reason...
>>
>> Having said all this, and that I would love to see it, I must admit: it is
>> not presently on the radar for any CMake developers as far as I know. So, as
>> always: patches welcome. :-)
>>
>>
>> HTH,
>> David
>>
>>
>> On Fri, Jul 17, 2009 at 3:05 PM, Clinton Stimpson <clinton at elemtech.com<mailto:
>> clinton at elemtech.com>> wrote:
>>
>>    So I'm using GetPrequisites.cmake to gather dependencies.
>>    Are there any examples, tips, etc.. for using this?
>>
>>    With the results I'm getting back, I do a
>>    file(INSTALL ... ) because that's what I see in the
>>    cmake_installcmake file.  Should it be documented?
>>    But these files I'm getting back are soft links to the real
>>    library.  And the file(INSTALL ... ) just puts a softlink in my
>>    installation directory instead of a real library.
>>
>>    Is there some higher level cmake function I should be calling to
>>    install libraries on Unix/Linux, similar to how there is
>>    BundleUtilties.cmake for Mac?  Or ideally, is there one function I
>>    can use on all platforms to install some prerequisites?
>>
>>    Thanks,
>>    Clint
>>
>>    _______________________________________________
>>    Powered by www.kitware.com <http://www.kitware.com>
>>
>>    Visit other Kitware open-source projects at
>>    http://www.kitware.com/opensource/opensource.html
>>
>>    Please keep messages on-topic and check the CMake FAQ at:
>>    http://www.cmake.org/Wiki/CMake_FAQ
>>
>>    Follow this link to subscribe/unsubscribe:
>>    http://www.cmake.org/mailman/listinfo/cmake
>>
>>
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>

--000e0cd144943c5916046eee970c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

No. It&#39;s supposed to return the actual string that is referenced by the=
 thing being analyzed. But you can call gp_resolve_item to get the full pat=
h... (There is a reason for this, although I can&#39;t remember what it is =
at the moment... If I think of it, I&#39;ll reply again.)<div>
<div><br></div><div>From commentary in the middle of the get_prerequisites =
function:</div><div><br></div><div>=A0=A0 =A0# Use the raw_item as the list=
 entries returned by this function. Use the</div><div>=A0=A0 =A0# gp_resolv=
e_item function to resolve it to an actual full path file if</div>
<div>=A0=A0 =A0# necessary.</div><div>=A0=A0 =A0#</div><div>=A0=A0 =A0set(i=
tem &quot;${raw_item}&quot;)</div><div><br></div><div><br></div><div>HTH,</=
div><div>David</div><div><br></div><br><div class=3D"gmail_quote">On Fri, J=
ul 17, 2009 at 6:40 PM, Clinton Stimpson <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:clinton at elemtech.com">clinton at elemtech.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><br>
Is get_prerequisites() supposed to return absolute paths all the time?<br>
For example, on the Mac, I&#39;ve got some frameworks in /Library/Framework=
s that I may want to copy if they might not exist on other Macs. =A0When I =
call get_prerequisites(), getting &quot;foo.framwork/&quot; instead of &quo=
t;/Library/Frameworks/foo.framework/&quot;<br>

<br>
Clint<br>
<br>
David Cole wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">
So I would love to see a corollary to BundleUtilities.cmake for Mac on Wind=
ows and Linux, too.<br>
<br>
Using GetPrerequisites to gather the set of dependent files is obviously th=
e first step.<br>
<br>
Then, on Windows, a function that installs all the dependent dlls to the sa=
me location as the executable would be awesome.<br>
<br>
On Linux, I guess you would have to make sure everything you depend on is e=
ither already installed in its install path, or aware of your install path,=
 or uses LD_LIBRARY_PATH -- the issues here are the ones I am least familia=
r with (compared to Windows and Mac anyhow).<br>

<br>
I don&#39;t think this should ever be fully automated because of licensing =
and coyright issues. Technically, it is easy to gather the set of required =
files to make something work on a practical level. The issue will be: &quot=
;hey, you&#39;re not allowed to copy *that* dll&quot; because of such and s=
uch non-technical reason...<br>

<br>
Having said all this, and that I would love to see it, I must admit: it is =
not presently on the radar for any CMake developers as far as I know. So, a=
s always: patches welcome. :-)<br>
<br>
<br>
HTH,<br>
David<br>
<br>
<br></div><div class=3D"im">
On Fri, Jul 17, 2009 at 3:05 PM, Clinton Stimpson &lt;<a href=3D"mailto:cli=
nton at elemtech.com" target=3D"_blank">clinton at elemtech.com</a> &lt;mailto:<a=
 href=3D"mailto:clinton at elemtech.com" target=3D"_blank">clinton at elemtech.co=
m</a>&gt;&gt; wrote:<br>

<br>
 =A0 =A0So I&#39;m using GetPrequisites.cmake to gather dependencies.<br>
 =A0 =A0Are there any examples, tips, etc.. for using this?<br>
<br>
 =A0 =A0With the results I&#39;m getting back, I do a<br>
 =A0 =A0file(INSTALL ... ) because that&#39;s what I see in the<br>
 =A0 =A0cmake_installcmake file. =A0Should it be documented?<br>
 =A0 =A0But these files I&#39;m getting back are soft links to the real<br>
 =A0 =A0library. =A0And the file(INSTALL ... ) just puts a softlink in my<b=
r>
 =A0 =A0installation directory instead of a real library.<br>
<br>
 =A0 =A0Is there some higher level cmake function I should be calling to<br=
>
 =A0 =A0install libraries on Unix/Linux, similar to how there is<br>
 =A0 =A0BundleUtilties.cmake for Mac? =A0Or ideally, is there one function =
I<br>
 =A0 =A0can use on all platforms to install some prerequisites?<br>
<br>
 =A0 =A0Thanks,<br>
 =A0 =A0Clint<br>
<br>
 =A0 =A0_______________________________________________<br></div>
 =A0 =A0Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www=
.kitware.com</a> &lt;<a href=3D"http://www.kitware.com" target=3D"_blank">h=
ttp://www.kitware.com</a>&gt;<div class=3D"im"><br>
<br>
 =A0 =A0Visit other Kitware open-source projects at<br>
 =A0 =A0<a href=3D"http://www.kitware.com/opensource/opensource.html" targe=
t=3D"_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
 =A0 =A0Please keep messages on-topic and check the CMake FAQ at:<br>
 =A0 =A0<a href=3D"http://www.cmake.org/Wiki/CMake_FAQ" target=3D"_blank">h=
ttp://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
 =A0 =A0Follow this link to subscribe/unsubscribe:<br>
 =A0 =A0<a href=3D"http://www.cmake.org/mailman/listinfo/cmake" target=3D"_=
blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
<br>
</div></blockquote><div><div></div><div class=3D"h5">
<br>
_______________________________________________<br>
Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.kitware=
.com</a><br>
<br>
Visit other Kitware open-source projects at <a href=3D"http://www.kitware.c=
om/opensource/opensource.html" target=3D"_blank">http://www.kitware.com/ope=
nsource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href=3D"http:/=
/www.cmake.org/Wiki/CMake_FAQ" target=3D"_blank">http://www.cmake.org/Wiki/=
CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href=3D"http://www.cmake.org/mailman/listinfo/cmake" target=3D"_blank">h=
ttp://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>

--000e0cd144943c5916046eee970c--


More information about the CMake mailing list